From 2fee6b02db2a7ad1880ccd0c047134f74472d265 Mon Sep 17 00:00:00 2001 From: Matthias Date: Sun, 3 Apr 2022 03:48:27 +0200 Subject: [PATCH] structure comment --- InvenTree/common/notifications.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/InvenTree/common/notifications.py b/InvenTree/common/notifications.py index 63cd75ec3d..749af6e63d 100644 --- a/InvenTree/common/notifications.py +++ b/InvenTree/common/notifications.py @@ -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: