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
Bug Report
Unexpected error Cannot determine type of "userlist". Needs a cyclic import to happen.
Cannot determine type of "userlist"
To Reproduce
foo.py
import bar class Foo: def __init__(self) -> None: self.view_selector = object()
bar.py
from foo import Foo class ServerView: def __init__(self) -> None: print(ChannelView().userlist) self.view_id = str(Foo().view_selector) class ChannelView: def __init__(self) -> None: print(ServerView().view_id) self.userlist = object()
Expected Behavior
no error, or an error that does not confusingly go away when I delete a seemingly unrelated line of code
Actual Behavior
$ python3 -m mypy foo.py bar.py bar.py:5: error: Cannot determine type of "userlist" Found 1 error in 1 file (checked 2 source files)
Your Environment
mypy.ini
The text was updated successfully, but these errors were encountered:
This appears to be a really old bug. It happens on v0.3.1, from 5 years ago, which is the oldest mypy I could get to work.
Sorry, something went wrong.
No branches or pull requests
Bug Report
Unexpected error
Cannot determine type of "userlist"
. Needs a cyclic import to happen.To Reproduce
foo.py
bar.py
Expected Behavior
no error, or an error that does not confusingly go away when I delete a seemingly unrelated line of code
Actual Behavior
Your Environment
mypy.ini
(and other config files): noneThe text was updated successfully, but these errors were encountered: