You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 770b585
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: conformance/results/zuban/callables_kwargs.toml
+8Lines changed: 8 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -6,10 +6,18 @@ Incorrectly rejects assigning a callable without `**kwargs` to a callable whose
6
6
"""
7
7
conformance_automated = "Fail"
8
8
errors_diff = """
9
+
Line 210: Expected 1 errors
9
10
Line 212: Expected 1 errors
11
+
Line 213: Expected 1 errors
10
12
Line 215: Expected 1 errors
13
+
Line 216: Expected 1 errors
14
+
Line 217: Expected 1 errors
15
+
Line 221: Expected 1 errors
11
16
Line 223: Expected 1 errors
17
+
Line 224: Expected 1 errors
12
18
Line 226: Expected 1 errors
19
+
Line 227: Expected 1 errors
20
+
Line 228: Expected 1 errors
13
21
Line 243: Expected 1 errors
14
22
Line 246: Expected 1 errors
15
23
Line 155: Unexpected errors ['callables_kwargs.py:155: error: Incompatible types in assignment (expression has type "def func7(*, v1: int, v3: str, v2: str = ...) -> None", variable has type "TDProtocol7") [assignment]']
Copy file name to clipboardExpand all lines: docs/spec/callables.rst
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -417,7 +417,7 @@ Therefore, it is only safe to unpack a non-:term:`closed` TypedDict in a functio
417
417
if that function has ``**kwargs`` in its signature, and any :term:`extra items` are assignable to the type of ``**kwargs``.
418
418
419
419
- If the function being called has ``**kwargs``, checkers should error if the TypedDict's :term:`extra items` are not assignable to the type of ``**kwargs``. For this rule, :term:`open` TypedDicts are treated as having extra items of type ``object``.
420
-
- If the function being called does not have ``**kwargs``, checkers may error if the TypedDict is :term:`open`, and should error if the TypedDict declares non-``Never`` :term:`extra items`.
420
+
- If the function being called does not have ``**kwargs``, checkers should error if the TypedDict is :term:`open`, and should error if the TypedDict declares non-``Never`` :term:`extra items`.
421
421
422
422
In cases similar to the ``bar`` function above the problem could be worked
423
423
around by marking ``Animal`` with ``closed=True``, or by explicitly dereferencing desired
0 commit comments