Skip to content

Commit

Permalink
fix: fix TypedDict test for 3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
wyfo committed Oct 19, 2023
1 parent b652064 commit 34def70
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/unit/test_visitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,11 @@ class MyInt(int):
(
TypedDictExample,
Visitor.typed_dict,
(TypedDictExample, {"key1": str, "key2": List[int]}, {"key1", "key2"}),
(
TypedDictExample,
{"key1": str, "key2": List[int]},
{"key1", "key2"} if sys.version_info >= (3, 9) else set(),
),
),
(Optional[int], Visitor.union, [(int, NoneType)]),
(Union[int, str], Visitor.union, [(int, str)]),
Expand Down

0 comments on commit 34def70

Please sign in to comment.