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
The error generated by the following program is unexpected:
import os class C: def __init__(self) -> None: self.os = os self.os.chdir('/') # Error: Module has no attribute "chdir" os.chdir('/') # Ok C() # No runtime error
The text was updated successfully, but these errors were encountered:
Looks like just an oversight in #3435, this
if not isinstance(lval, NameExpr): continue
could be probably just replaced with
if not isinstance(lval, RefExpr): continue
plus corresponding minor changes.
Sorry, something went wrong.
Fix module alias as instance attribute (#8259)
2d3a1bf
Fixes #4291
Successfully merging a pull request may close this issue.
The error generated by the following program is unexpected:
The text was updated successfully, but these errors were encountered: