Skip to content
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

Any type inferred for circular reference due to import cycle #3277

Closed
JukkaL opened this issue Apr 28, 2017 · 1 comment
Closed

Any type inferred for circular reference due to import cycle #3277

JukkaL opened this issue Apr 28, 2017 · 1 comment

Comments

@JukkaL
Copy link
Collaborator

JukkaL commented Apr 28, 2017

The inferred Any type is unexpected:

t.py:

import t2
def f() -> None: pass
reveal_type(t2.f)  # Revealed type is 'Any'

t2.py:

from t import f

A better option would be to reveal the correct type or generate an error if it's not possible.

@JukkaL
Copy link
Collaborator Author

JukkaL commented Mar 8, 2018

This was also fixed by #4695.

@JukkaL JukkaL closed this as completed Mar 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants