Add default to item_older_than_n_days.
[kiosk.git] / trigger.py
index 9bb7ec5b155a22c257aaa2e0d1f1f33b42005e73..842230bf184f1edc784d6a1581ffe905b5772d94 100644 (file)
@@ -1,9 +1,16 @@
-class trigger(object):
+#!/usr/bin/env python3
+
+from abc import ABC, abstractmethod
+from typing import List, Tuple, Optional
+
+
+class trigger(ABC):
     """Base class for something that can trigger a page becomming active."""
 
     PRIORITY_HIGH = 100
     PRIORITY_NORMAL = 50
     PRIORITY_LOW = 0
 
-    def get_triggered_page_list(self):
-        return None
+    @abstractmethod
+    def get_triggered_page_list(self) -> Optional[List[Tuple[str, int]]]:
+        pass