1
0

Documentation

This commit is contained in:
Jon Michael Aanes 2023-12-03 22:19:40 +01:00
parent f26f8b4177
commit e99dee7a86

View File

@ -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