Skip to content

Commit 871ec6b

Browse files
authored
Fix bug with param_kind compare with ARG_NAMED (#11447)
1 parent a2cc169 commit 871ec6b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mypy/semanal.py

Lines changed: 1 addition & 1 deletion
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)