Adding type annotations and fixing up formatting.
[kiosk.git] / trigger.py
index d2c31635d084888736fb7712f65d8054f1e5c630..e75222c87013ec753c3c6297b2a04f9b7c8c306d 100644 (file)
@@ -1,10 +1,16 @@
+#!/usr/bin/env python3
 
-class trigger(object):
+from abc import ABC, abstractmethod
+from typing import Tuple
+
+
+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) -> Tuple[str, int]:
+        pass