-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
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
Unexpected Any for complex import structure #4110
Comments
I cannot reproduce this on master. |
I'm on 0.530 and I can't see what changed in the meanwhile that fixed it. |
Ah you are right. My testcase doesn't produce the issue. |
I've managed to eliminate I've managed to get the same issue when I have the following file:
But I understand this, because this doesn't import |
Yes, everything unknown is
|
Ok. I think I've narrowed down and located the issue. I have the following directory structure:
With the following contents:
This works fine when I run in python because the |
This may be related to #3277 but it doesn't look like a duplicate, since there are no explicit import cycle. |
Looks like this was fixed by #4695. |
Hello guys, I have the following snippet:
On the very last line of the function
make_step
the following warning is reported only when running with--strict
enabled:warning: Returning Any from function declared to return "Tuple[int, str]"
.This sounds like a type propagation bug of sorts in mypy since there is no error reported in the type defintion of
blabla_call
, but only further on does mypy get confused.The text was updated successfully, but these errors were encountered: