Skip to content

Commit

Permalink
fix version check to be more precise
Browse files Browse the repository at this point in the history
  • Loading branch information
alexmojaki committed Dec 17, 2023
1 parent 372fbd1 commit a84c1e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_eval_type_backport.py
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,6 @@ def test_subscript():

def test_copy_forward_ref_attrs():
ref = t.ForwardRef(
't.ClassVar[int | str]', is_argument=False, **({} if sys.version_info[:2] <= (3, 9) else {'is_class': True})
't.ClassVar[int | str]', is_argument=False, **({} if sys.version_info < (3, 9, 8) else {'is_class': True})
)
eval_type_backport(ref, globalns=globals(), localns=locals())

0 comments on commit a84c1e3

Please sign in to comment.