We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
We fail to propagate changes when the target of an import changes.
Here, we swap what module a imports foo from, but m.f doesn't get rechecked.
a
foo
m.f
[case testImportSwap] from a import foo def f() -> int: return foo() [file a.py] from b1 import foo [file a.py.2] from b2 import foo [file b1.py] def foo() -> int: return 12 [file b2.py] def foo() -> str: return 'uhoh' [out] == main:3: error: Incompatible return value type (got "str", expected "int")
Same thing if we switch from a importing foo to just defining it.
[case testImportSwap2] from b import foo def f() -> int: return foo() [file a.py] from b import foo [file a.py.2] def foo() -> str: return 'uhoh' [file b.py] def foo() -> int: return 12 [out] == main:3: error: Incompatible return value type (got "str", expected "int")
Same problem without using from in m.
from
m
[case testImportSwap3] import a def f() -> int: return a.foo() [file a.py] from b1 import foo [file a.py.2] from b2 import foo [file b1.py] def foo() -> int: return 12 [file b2.py] def foo() -> str: return 'uhoh' [out] == main:3: error: Incompatible return value type (got "str", expected "int")
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
We fail to propagate changes when the target of an import changes.
Here, we swap what module
a
importsfoo
from, butm.f
doesn't get rechecked.Same thing if we switch from
a
importingfoo
to just defining it.Same problem without using
from
inm
.The text was updated successfully, but these errors were encountered: