-
-
Notifications
You must be signed in to change notification settings - Fork 498
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
The name for the variables within a list comprehension are incorrect #1944
Comments
What is the qualified name of |
|
I'm a bit unsure what to do here. The correct name for translate would probably be something else entirely and the correct name for word would probably be |
@davidhalter Even though I am passionate about jedi, I am currently busy with some other projects so won't be able to contribute here. |
For the script below
Running
s.get_names(all_scopes=True, references=True)
on it shows the variables within the list comprehension with full names such as__main__.translate
and__main__.word
rather than the expected__main__.pig_latin.translate
This causes these variable to be in effect be hidden from the function scope, which breaks functionality of static analysis tools. Is the current behavior intended? If so, then would love some signal that the functions and variables belongs to the
pig_latin
function. If not, would love a fix to the names of the list comprehension variables.The text was updated successfully, but these errors were encountered: