2023-06-07 18:05:42 +00:00
|
|
|
import types
|
|
|
|
import typing as t
|
|
|
|
|
|
|
|
|
2021-12-02 02:19:18 +00:00
|
|
|
class NotifyType:
|
|
|
|
INFO: NotifyType
|
|
|
|
SUCCESS: NotifyType
|
|
|
|
WARNING: NotifyType
|
|
|
|
FAILURE: NotifyType
|
|
|
|
|
|
|
|
class NotifyFormat:
|
|
|
|
TEXT: NotifyFormat
|
|
|
|
HTML: NotifyFormat
|
|
|
|
MARKDOWN: NotifyFormat
|
|
|
|
|
|
|
|
class ContentLocation:
|
|
|
|
LOCAL: ContentLocation
|
|
|
|
HOSTED: ContentLocation
|
2023-06-07 18:05:42 +00:00
|
|
|
INACCESSIBLE: ContentLocation
|
|
|
|
|
|
|
|
|
|
|
|
NOTIFY_MODULE_MAP: t.Dict[str, t.Dict[str, t.Union[t.Type["NotifyBase"], types.ModuleType]]]
|