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

Inconsistent references in assignments #354

Closed
Kronuz opened this issue Jul 28, 2020 · 1 comment
Closed

Inconsistent references in assignments #354

Kronuz opened this issue Jul 28, 2020 · 1 comment

Comments

@Kronuz
Copy link
Contributor

Kronuz commented Jul 28, 2020

When parsing this snippet of code:

import os.path
os.path.join("a", "b")

scope["os.path"] ends up finding the import Assignment with one reference. But on the other hand, after merely adding strip() to it, as in:

import os.path
os.path.join("a", "b").strip()

The Assignment for scope["os.path"] no longer has any references, but `scope["os"] does.

@Kronuz
Copy link
Contributor Author

Kronuz commented Aug 7, 2020

Fixed by #362

@Kronuz Kronuz closed this as completed Aug 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant