Skip to content

Commit 49ab1c9

Browse files
AiyionPrimeoroulet
authored andcommitted
chore: Add typehints in load_aspace_shelf
1 parent c7d4354 commit 49ab1c9

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

asyncua/server/address_space.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -711,7 +711,7 @@ def make_aspace_shelf(self, path: Path):
711711
for nodeid, ndata in self._nodes.items():
712712
s[nodeid.to_string()] = ndata
713713

714-
def load_aspace_shelf(self, path):
714+
def load_aspace_shelf(self, path: Path):
715715
"""
716716
Load the standard address space nodes from a python shelve via LazyLoadingDict as needed.
717717
The dump() method can no longer be used if the address space is being loaded from a shelf
@@ -728,8 +728,8 @@ class LazyLoadingDict(collections.abc.MutableMapping):
728728
is currently NOT supported
729729
"""
730730

731-
def __init__(self, source):
732-
self.source = source # python shelf
731+
def __init__(self, source: shelve.Shelf):
732+
self.source: shelve.Shelf = source # python shelf
733733
self.cache = {} # internal dict
734734

735735
def __getitem__(self, key):

0 commit comments

Comments
 (0)