Skip to content

Commit 25d30b5

Browse files
Austrikerhugo
and
hugo
authored
fix: canfilter typing (#1456)
Co-authored-by: hugo <hugo@bilberry.io>
1 parent 486dafb commit 25d30b5

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

can/typechecking.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,10 @@
88

99
import typing_extensions
1010

11-
CanFilter: typing_extensions = typing_extensions.TypedDict(
12-
"CanFilter", {"can_id": int, "can_mask": int}
13-
)
11+
12+
class CanFilter(typing_extensions.TypedDict):
13+
can_id: int
14+
can_mask: int
1415

1516

1617
class CanFilterExtended(typing_extensions.TypedDict):

0 commit comments

Comments
 (0)