Skip to content

Commit

Permalink
add missing pep_604_support decorator
Browse files Browse the repository at this point in the history
  • Loading branch information
arne.vanlondersele committed Jan 13, 2025
1 parent 7a1c8f5 commit 9b298dc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/test_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -401,6 +401,7 @@ class FakeType:
assert extract_generic(FakeType, defaults) == defaults


@pep_604_support
def test_optional_and_union_none_does_not_pollute_scope_via_caching():
is_generic(Optional[str])
is_generic_collection(str | None)

0 comments on commit 9b298dc

Please sign in to comment.