Skip to content

Commit 0c7b3ab

Browse files
committed
tweaked tests per recommendation
1 parent b261fae commit 0c7b3ab

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

test-data/unit/check-classes.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7385,7 +7385,7 @@ class A(thing=5):
73857385
pass
73867386
[out]
73877387
main: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]

test-data/unit/check-functions.test

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3569,7 +3569,8 @@ class Bar(Foo):
35693569

35703570
[case testInvalidUnpack]
35713571
from foo import bar # type: ignore[import-not-found]
3572-
from typing import Any
3572+
from typing import Any, Optional
3573+
35733574

35743575
def g(x: Any):
35753576
pass
@@ -3586,7 +3587,6 @@ def f2(x: list[int]):
35863587
def f3(x: Any):
35873588
return g(*x)
35883589

3589-
from typing import Optional
35903590
def f4(x: Optional[int]):
35913591
return g(*x) # E: Expected iterable as variadic argument
35923592

0 commit comments

Comments
 (0)