Skip to content

Commit 68bc671

Browse files
Merge branch 'python:master' into fix_list_comprehension
2 parents fac1e07 + e30128b commit 68bc671

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

mypy/semanal.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1059,7 +1059,7 @@ def remove_unpack_kwargs(self, defn: FuncDef, typ: CallableType) -> CallableType
10591059
# It is OK for TypedDict to have a key named 'kwargs'.
10601060
overlap.discard(typ.arg_names[-1])
10611061
if overlap:
1062-
overlapped = ", ".join([f'"{name}"' for name in overlap])
1062+
overlapped = ", ".join([f'"{name}"' for name in sorted(filter(None, overlap))])
10631063
self.fail(f"Overlap between argument names and ** TypedDict items: {overlapped}", defn)
10641064
new_arg_types = typ.arg_types[:-1] + [AnyType(TypeOfAny.from_error)]
10651065
return typ.copy_modified(arg_types=new_arg_types)

mypyc/test/test_cheader.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
import re
88
import unittest
99

10-
from mypyc.ir.ops import PrimitiveDescription
1110
from mypyc.primitives import registry
1211

1312

@@ -32,8 +31,6 @@ def check_name(name: str) -> None:
3231
registry.function_ops.values(),
3332
]:
3433
for ops in values:
35-
if isinstance(ops, PrimitiveDescription):
36-
ops = [ops]
3734
for op in ops:
3835
if op.c_function_name is not None:
3936
check_name(op.c_function_name)

0 commit comments

Comments
 (0)