Skip to content

Commit 2db8ff8

Browse files
sobolevntushar-deepsource
authored andcommitted
Fix bug with param_kind compare with ARG_NAMED (python#11447)
1 parent a9f185a commit 2db8ff8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mypy/semanal.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -3111,7 +3111,7 @@ def process_typevar_parameters(self, args: List[Expression],
31113111
contravariant = False
31123112
upper_bound: Type = self.object_type()
31133113
for param_value, param_name, param_kind in zip(args, names, kinds):
3114-
if not param_kind == ARG_NAMED:
3114+
if not param_kind.is_named():
31153115
self.fail("Unexpected argument to TypeVar()", context)
31163116
return None
31173117
if param_name == 'covariant':

0 commit comments

Comments
 (0)