#!/usr/bin/env python3
-from typing import Tuple
+from typing import Optional, Tuple
import constants
import globals
class gcal_trigger(trigger.trigger):
- def get_triggered_page_list(self) -> Tuple[str, int]:
+ def get_triggered_page_list(self) -> Optional[Tuple[str, int]]:
if globals.get("gcal_triggered"):
print("****** gcal has an imminent upcoming event. ******")
return (constants.gcal_imminent_pagename, trigger.trigger.PRIORITY_HIGH)