We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f2263da commit 0c7606fCopy full SHA for 0c7606f
canopen/pdo/base.py
@@ -39,7 +39,7 @@ def __init__(self, node: Union[LocalNode, RemoteNode]):
39
def __iter__(self):
40
return iter(self.map)
41
42
- def __getitem__(self, key):
+ def __getitem__(self, key: Union[int, str]):
43
if isinstance(key, int):
44
if key == 0:
45
raise KeyError("PDO index zero requested for 1-based sequence")
0 commit comments