Hi,
Consider the following code, which passes with no error.
from foo import bar # type: ignore[import-not-found]
def baz(x: int):
return bar(*x, **x)
I think it would be neat to have mypy raising error on this, since int cannot be unpacked in any way.
Is it something to consider or am I missing something?
Thanks in advance.
Élie
Hi,
Consider the following code, which passes with no error.
I think it would be neat to have
mypyraising error on this, sinceintcannot be unpacked in any way.Is it something to consider or am I missing something?
Thanks in advance.
Élie