Skip to content

Commit

Permalink
add test_copy_forward_ref_attrs
Browse files Browse the repository at this point in the history
  • Loading branch information
alexmojaki committed Dec 17, 2023
1 parent 7e0bfea commit 9c5dede
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/test_eval_type_backport.py
Original file line number Diff line number Diff line change
Expand Up @@ -333,3 +333,8 @@ def test_subscript():
're.Match[str]',
t.Match[str],
)


def test_copy_forward_ref_attrs():
ref = t.ForwardRef('t.ClassVar[int | str]', is_argument=False)
eval_type_backport(ref, globalns=globals(), localns=locals())

0 comments on commit 9c5dede

Please sign in to comment.