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 4a76a1a commit 2348b8dCopy full SHA for 2348b8d
mypy/plugins/default.py
@@ -554,7 +554,7 @@ def tuple_mul_callback(ctx: MethodContext) -> Type:
554
value = arg_type.last_known_value.value
555
if isinstance(value, int):
556
return ctx.type.copy_modified(items=ctx.type.items * value)
557
- elif isinstance(ctx.type, LiteralType):
+ elif isinstance(arg_type, LiteralType):
558
value = arg_type.value
559
560
0 commit comments