Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion appdaemon/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,8 @@ class PersistentDict(shelve.DbfilenameShelf):
Dict-like object that uses a Shelf to persist its contents.
"""

def __init__(self, filename, safe: bool, *args, **kwargs):
def __init__(self, filename: Path, safe: bool, *args, **kwargs):
filename = Path(filename).resolve().as_posix()
# writeback=True allows for mutating objects in place, like with a dict.
super().__init__(filename, writeback=True)
self.safe = safe
Expand Down
Loading