Skip to content

Commit

Permalink
Backwards compatibility on typealias again
Browse files Browse the repository at this point in the history
  • Loading branch information
talmo committed Nov 1, 2024
1 parent 075e528 commit 57ee01c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sleap_io/model/skeleton.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def __getitem__(self, idx) -> Node:
return node


NodeOrIndex = Node | str | int # type: typing.TypeAlias
NodeOrIndex = typing.Union[Node, str, int]
# NodeOrIndex: TypeAlias = Node | str | int # py >= 3.10
# type NodeOrIndex = Node | str | int # py >= 3.12

Expand Down

0 comments on commit 57ee01c

Please sign in to comment.