We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
extend
a = [] a.extend([1, 2]) reveal_type(a) # list[int] b = [] # error: need type annotation b.extend((1, 2)) reveal_type(b) # list[Any]
Mypy should be able to infer the type of b in this case.
b