From 66f95170aea7faf64ab88a912646442da34a98af Mon Sep 17 00:00:00 2001 From: Carl Meyer Date: Wed, 22 Apr 2026 20:25:34 -0400 Subject: [PATCH] allow consistent treatment of kwargs: Unpack[TD] --- conformance/results/ty/callables_kwargs.toml | 1 - conformance/tests/callables_kwargs.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/conformance/results/ty/callables_kwargs.toml b/conformance/results/ty/callables_kwargs.toml index 610256cb3..636f9556d 100644 --- a/conformance/results/ty/callables_kwargs.toml +++ b/conformance/results/ty/callables_kwargs.toml @@ -2,7 +2,6 @@ conformance_automated = "Fail" conformant = "Unsupported" errors_diff = """ Line 46: Expected 1 errors -Line 51: Expected 1 errors Line 58: Expected 1 errors Line 63: Expected 1 errors Line 65: Expected 1 errors diff --git a/conformance/tests/callables_kwargs.py b/conformance/tests/callables_kwargs.py index c52319fc1..a4c431dbd 100644 --- a/conformance/tests/callables_kwargs.py +++ b/conformance/tests/callables_kwargs.py @@ -48,7 +48,7 @@ def func3() -> None: td2 = TD2(v1=2, v3="4") func1(**td2) # OK - func1(v1=1, v2="", v3="5", v4=5) # E: v4 is not in TD2 + func1(v1=1, v2="", v3="5", v4=5) # E?: v4 is not in TD2, but could be in a subtype func1(1, "", "5") # E: args not passed by position # > Passing a dictionary of type dict[str, object] as a **kwargs argument