diff options
| author | Scott <[email protected]> | 2022-02-02 09:14:12 -0800 |
|---|---|---|
| committer | Scott <[email protected]> | 2022-02-02 09:14:12 -0800 |
| commit | a4bf4d05230474ad14243d67ac7f8c938f670e58 (patch) | |
| tree | 673fb8bea628ce51b942d93ba5df433732c7384e /base_presence.py | |
| parent | 971d4ba141459f78d10d5770b9459d1ead7d49a0 (diff) | |
More type annotations.
Diffstat (limited to 'base_presence.py')
| -rwxr-xr-x | base_presence.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/base_presence.py b/base_presence.py index 612193e..3ceddb3 100755 --- a/base_presence.py +++ b/base_presence.py @@ -4,7 +4,7 @@ import datetime from collections import defaultdict import logging import re -from typing import Dict, List, Set +from typing import Dict, List, Optional, Set import warnings # Note: this module is fairly early loaded. Be aware of dependencies. @@ -75,7 +75,7 @@ class PresenceDetection(object): ] = defaultdict(dict) self.names_by_mac: Dict[str, str] = {} self.dark_locations: Set[Location] = set() - self.last_update = None + self.last_update: Optional[datetime.datetime] = None def maybe_update(self) -> None: if self.last_update is None: |
