Skip to content

Commit feb8cf5

Browse files
committed
Add annotation.
1 parent f2263da commit feb8cf5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

canopen/pdo/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def __init__(self, node: Union[LocalNode, RemoteNode]):
3939
def __iter__(self):
4040
return iter(self.map)
4141

42-
def __getitem__(self, key):
42+
def __getitem__(self, key: Union[int, str]):
4343
if isinstance(key, int):
4444
if key == 0:
4545
raise KeyError("PDO index zero requested for 1-based sequence")

0 commit comments

Comments
 (0)