structure comment

This commit is contained in:
Matthias 2022-04-03 03:48:27 +02:00
parent 905b164ecb
commit 2fee6b02db
No known key found for this signature in database
GPG Key ID: F50EF5741D33E076

View File

@ -10,6 +10,7 @@ from plugin import registry
logger = logging.getLogger('inventree')
# region methods
class NotificationMethod:
"""
Base class for notification methods
@ -112,6 +113,7 @@ class NotificationMethod:
return False
# endregion
class SingleNotificationMethod(NotificationMethod):
def send(self, target):
raise NotImplementedError('The `send` method must be overriden!')
@ -120,6 +122,7 @@ class SingleNotificationMethod(NotificationMethod):
class BulkNotificationMethod(NotificationMethod):
def send_bulk(self):
raise NotImplementedError('The `send` method must be overriden!')
# endregion
class MethodStorageClass: