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 d9b1295 commit 05cf2e5Copy full SHA for 05cf2e5
test-data/unit/check-functions.test
@@ -3705,6 +3705,8 @@ class P(Protocol):
3705
3706
def foo(x: P, y: P) -> None: ...
3707
3708
-foo(*[0, '']) # E: Argument 1 to "foo" has incompatible type "*list[object]"; expected "P"
3709
-foo(**{'x': 0, 'y': ''}) # E: Argument 1 to "foo" has incompatible type "**dict[str, object]"; expected "P"
+args: list[object]
+foo(*args) # E: Argument 1 to "foo" has incompatible type "*list[object]"; expected "P"
3710
+kwargs: dict[str, object]
3711
+foo(**kwargs) # E: Argument 1 to "foo" has incompatible type "**dict[str, object]"; expected "P"
3712
[builtins fixtures/dict.pyi]
0 commit comments