Skip to content

Commit 1a5bd8e

Browse files
committed
Annotate type hint for STRUCT_TYPES listing.
1 parent e2e53e0 commit 1a5bd8e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

canopen/objectdictionary/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ def add_member(self, variable: ODVariable) -> None:
281281
class ODVariable:
282282
"""Simple variable."""
283283

284-
STRUCT_TYPES = {
284+
STRUCT_TYPES: dict[int, struct.Struct] = {
285285
# Use struct module to pack/unpack data where possible and use the
286286
# custom IntegerN and UnsignedN classes for the special data types.
287287
BOOLEAN: struct.Struct("?"),

0 commit comments

Comments
 (0)