We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 446ae52 commit a4e661dCopy full SHA for a4e661d
pytest_mypy_plugins/tests/test-regex-assertions.yml
@@ -57,14 +57,18 @@
57
58
- case: regex_against_callable_comment
59
main: |
60
- def foo(bar: str, ham: int = 42) -> set[str | int]:
+ from typing import Set, Union
61
+
62
+ def foo(bar: str, ham: int = 42) -> Set[Union[str, int]]:
63
return {bar, ham}
64
reveal_type(foo) # NR: Revealed type is "def \(bar: builtins\.str, ham: builtins\.int =\) -> .*"
65
66
- case: regex_against_callable_out
67
regex: yes
68
69
70
71
72
73
reveal_type(foo)
74
out: |
0 commit comments