projects
/
python_utils.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
More type annotations.
[python_utils.git]
/
base_presence.py
diff --git
a/base_presence.py
b/base_presence.py
index 612193e1df3b84f0ee8fc52b86ab5c94ce7ee38d..3ceddb32dff9ab1bf2a17d2b3aa5547125ded2d9 100755
(executable)
--- a/
base_presence.py
+++ b/
base_presence.py
@@
-4,7
+4,7
@@
import datetime
from collections import defaultdict
import logging
import re
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.
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()
] = 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:
def maybe_update(self) -> None:
if self.last_update is None: