Skip to content

Commit 0cec4f7

Browse files
authored
Microrefactoring: removed useless var from meet.py (#12025)
1 parent bb4b534 commit 0cec4f7

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

mypy/meet.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -508,15 +508,14 @@ def visit_param_spec(self, t: ParamSpecType) -> ProperType:
508508

509509
def visit_instance(self, t: Instance) -> ProperType:
510510
if isinstance(self.s, Instance):
511-
si = self.s
512-
if t.type == si.type:
511+
if t.type == self.s.type:
513512
if is_subtype(t, self.s) or is_subtype(self.s, t):
514513
# Combine type arguments. We could have used join below
515514
# equivalently.
516515
args: List[Type] = []
517516
# N.B: We use zip instead of indexing because the lengths might have
518517
# mismatches during daemon reprocessing.
519-
for ta, sia in zip(t.args, si.args):
518+
for ta, sia in zip(t.args, self.s.args):
520519
args.append(self.meet(ta, sia))
521520
return Instance(t.type, args)
522521
else:

0 commit comments

Comments
 (0)