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 aa95616 commit c9b465fCopy full SHA for c9b465f
mypy/checker.py
@@ -8108,7 +8108,9 @@ def is_unsafe_overlapping_overload_signatures(
8108
signature = expand_callable_self(signature)
8109
other = expand_callable_self(other)
8110
8111
- all_variables = {v.id: v for v in signature.variables} | {v.id: v for v in other.variables}
+ all_variables = {v.id: v for v in signature.variables}
8112
+ all_variables.update({v.id: v for v in other.variables})
8113
+
8114
for tvar_map in get_type_var_group_variants(all_variables.values()):
8115
sig_variant = expand_type(signature, tvar_map).copy_modified(variables=[])
8116
other_variant = expand_type(other, tvar_map).copy_modified(variables=[])
0 commit comments