Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
opcua-asyncio
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nikola Balog
opcua-asyncio
Commits
49ab1c9b
Commit
49ab1c9b
authored
Feb 13, 2024
by
Jan-Niklas Burfeind
Committed by
oroulet
Feb 21, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: Add typehints in load_aspace_shelf
parent
c7d4354a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
asyncua/server/address_space.py
asyncua/server/address_space.py
+3
-3
No files found.
asyncua/server/address_space.py
View file @
49ab1c9b
...
...
@@ -711,7 +711,7 @@ class AddressSpace:
for
nodeid
,
ndata
in
self
.
_nodes
.
items
():
s
[
nodeid
.
to_string
()]
=
ndata
def
load_aspace_shelf
(
self
,
path
):
def
load_aspace_shelf
(
self
,
path
:
Path
):
"""
Load the standard address space nodes from a python shelve via LazyLoadingDict as needed.
The dump() method can no longer be used if the address space is being loaded from a shelf
...
...
@@ -728,8 +728,8 @@ class AddressSpace:
is currently NOT supported
"""
def
__init__
(
self
,
source
):
self
.
source
=
source
# python shelf
def
__init__
(
self
,
source
:
shelve
.
Shelf
):
self
.
source
:
shelve
.
Shelf
=
source
# python shelf
self
.
cache
=
{}
# internal dict
def
__getitem__
(
self
,
key
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment