Skip to content

Commit a4e661d

Browse files
authored
Update test-regex-assertions.yml
1 parent 446ae52 commit a4e661d

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

pytest_mypy_plugins/tests/test-regex-assertions.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,14 +57,18 @@
5757
5858
- case: regex_against_callable_comment
5959
main: |
60-
def foo(bar: str, ham: int = 42) -> set[str | int]:
60+
from typing import Set, Union
61+
62+
def foo(bar: str, ham: int = 42) -> Set[Union[str, int]]:
6163
return {bar, ham}
6264
reveal_type(foo) # NR: Revealed type is "def \(bar: builtins\.str, ham: builtins\.int =\) -> .*"
6365
6466
- case: regex_against_callable_out
6567
regex: yes
6668
main: |
67-
def foo(bar: str, ham: int = 42) -> set[str | int]:
69+
from typing import Set, Union
70+
71+
def foo(bar: str, ham: int = 42) -> Set[Union[str, int]]:
6872
return {bar, ham}
6973
reveal_type(foo)
7074
out: |

0 commit comments

Comments
 (0)