Documentation
This commit is contained in:
parent
f26f8b4177
commit
e99dee7a86
|
@ -1,3 +1,7 @@
|
||||||
|
'''
|
||||||
|
Small utility for detecting social websites.
|
||||||
|
'''
|
||||||
|
|
||||||
from dataclasses import dataclass
|
from dataclasses import dataclass
|
||||||
from enforce_typing import enforce_types
|
from enforce_typing import enforce_types
|
||||||
from typing import List, Set, Optional, Union
|
from typing import List, Set, Optional, Union
|
||||||
|
@ -7,6 +11,9 @@ import re
|
||||||
import urllib.parse
|
import urllib.parse
|
||||||
|
|
||||||
class SocialSiteId(enum.Enum):
|
class SocialSiteId(enum.Enum):
|
||||||
|
'''
|
||||||
|
The great social website enum.
|
||||||
|
'''
|
||||||
REDDIT = 1 # Should have been named REDDIT_SUBREDDIT
|
REDDIT = 1 # Should have been named REDDIT_SUBREDDIT
|
||||||
REDDIT_USER = 22
|
REDDIT_USER = 22
|
||||||
REDDIT_SUBREDDIT = REDDIT
|
REDDIT_SUBREDDIT = REDDIT
|
||||||
|
|
Loading…
Reference in New Issue
Block a user