File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -7385,7 +7385,7 @@ class A(thing=5):
73857385 pass
73867386[out]
73877387main:1: error: Unexpected keyword argument "thing" for "__init_subclass__" of "object"
7388- tmp/builtins.pyi:5 : note: "__init_subclass__" of "object" defined here
7388+ tmp/builtins.pyi:7 : note: "__init_subclass__" of "object" defined here
73897389[builtins fixtures/object_with_init_subclass.pyi]
73907390
73917391[case testInitSubclassWithImports]
Original file line number Diff line number Diff line change @@ -3569,7 +3569,8 @@ class Bar(Foo):
35693569
35703570[case testInvalidUnpack]
35713571from foo import bar # type: ignore[import-not-found]
3572- from typing import Any
3572+ from typing import Any, Optional
3573+
35733574
35743575def g(x: Any):
35753576 pass
@@ -3586,7 +3587,6 @@ def f2(x: list[int]):
35863587def f3(x: Any):
35873588 return g(*x)
35883589
3589- from typing import Optional
35903590def f4(x: Optional[int]):
35913591 return g(*x) # E: Expected iterable as variadic argument
35923592
You can’t perform that action at this time.
0 commit comments