File tree Expand file tree Collapse file tree 3 files changed +138
-143
lines changed Expand file tree Collapse file tree 3 files changed +138
-143
lines changed Original file line number Diff line number Diff line change @@ -37,26 +37,18 @@ Tidelift = "https://tidelift.com/subscription/pkg/pypi-attrs?utm_source=pypi-att
37
37
38
38
39
39
[dependency-groups ]
40
- tests-mypy = [
41
- # A transitive dependency of pytest-mypy-plugins doesn't build on 3.14 yet.
42
- ' pytest-mypy-plugins; platform_python_implementation == "CPython" and python_version >= "3.10" and python_version < "3.14"' ,
43
- # Since the mypy error messages keep changing, we have to keep updating this
44
- # pin.
45
- ' mypy>=1.11.1; platform_python_implementation == "CPython" and python_version >= "3.10"' ,
46
- ]
40
+ tests-mypy = [' pytest-mypy-plugins; platform_python_implementation == "CPython" and python_version >= "3.10"' ]
47
41
tests = [
48
42
{ include-group = " tests-mypy" },
49
43
# For regression test to ensure cloudpickle compat doesn't break.
50
44
' cloudpickle; platform_python_implementation == "CPython"' ,
51
45
" hypothesis" ,
52
46
" pympler" ,
53
- # 4.3.0 dropped last use of `convert`
54
- " pytest>=4.3.0" ,
47
+ " pytest" ,
55
48
]
56
49
cov = [
57
50
{ include-group = " tests" },
58
- # Ensure coverage is new enough for `source_pkgs`.
59
- " coverage[toml]>=5.3" ,
51
+ " coverage[toml]" ,
60
52
]
61
53
pyright = [" pyright" , { include-group = " tests" }]
62
54
benchmark = [
Original file line number Diff line number Diff line change 604
604
parent: Optional[A]
605
605
606
606
reveal_type(A) # N: Revealed type is "def (parent: main.B) -> main.A"
607
- reveal_type(B) # N: Revealed type is "def (parent: Union[ main.A, None] ) -> main.B"
607
+ reveal_type(B) # N: Revealed type is "def (parent: main.A | None) -> main.B"
608
608
A(B(None))
609
609
610
610
- case : testAttrsForwardReferenceInClass
620
620
parent: Optional[A]
621
621
622
622
reveal_type(A) # N: Revealed type is "def (parent: main.A.B) -> main.A"
623
- reveal_type(A.B) # N: Revealed type is "def (parent: Union[ main.A, None] ) -> main.A.B"
623
+ reveal_type(A.B) # N: Revealed type is "def (parent: main.A | None) -> main.A.B"
624
624
A(A.B(None))
625
625
626
626
- case : testAttrsImporting
739
739
740
740
AOrB = Union[A, B]
741
741
742
- reveal_type(A) # N: Revealed type is "def (frob: builtins.list[Union[ main.A, main.B] ]) -> main.A"
742
+ reveal_type(A) # N: Revealed type is "def (frob: builtins.list[main.A | main.B]) -> main.A"
743
743
reveal_type(B) # N: Revealed type is "def () -> main.B"
744
744
745
745
A([B()])
You can’t perform that action at this time.
0 commit comments