mypy
mypy copied to clipboard
(🐞) Notes disappear when module is reanimated from cache
sus.py:
def f() -> None: ...
amongus.py:
from sus import f
f(x=1)
👉 mypy -m amongus
amongus.py:2:1: error: Unexpected keyword argument "x" for "f" [call-arg]
sus.py:1:1: note: "f" defined here
Found 1 error in 1 file (checked 1 source file)
👉 mypy -m amongus
amongus.py:2:1: error: Unexpected keyword argument "x" for "f" [call-arg]
Found 1 error in 1 file (checked 1 source file)
Where Did The Note Go❓

Here It Is 🔎
https://github.com/python/mypy/blob/e4edea31a2f87f08189ac197de820a8214d55876/mypy/types.py#L2004