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

Fix _ComprehensionVisitor.get_pyobject() #436

Merged
merged 1 commit into from Oct 18, 2021

Conversation

lieryan
Copy link
Member

@lieryan lieryan commented Oct 18, 2021

This should return AssignedName rather than DefinedName/PyDefinedObject.

Fix this error when analyzing module containing comprehensions:

TypeError: 'PyDefinedObject' object is not subscriptable

Checklist (delete if not relevant):

  • I have added tests that prove my fix is effective or that my feature works

This should return AssignedName rather than DefinedName/PyDefinedObject.

Fix this error when analyzing module containing comprehensions:

    TypeError: 'PyDefinedObject' object is not subscriptable
@lieryan lieryan force-pushed the lieryan-fix-comprehension-analyze branch from 8e61f3f to cf41656 Compare October 18, 2021 09:28
@lieryan lieryan merged commit 27cc7d2 into master Oct 18, 2021
@lieryan lieryan deleted the lieryan-fix-comprehension-analyze branch October 18, 2021 09:41
@lieryan lieryan restored the lieryan-fix-comprehension-analyze branch October 18, 2021 09:41
@lieryan lieryan deleted the lieryan-fix-comprehension-analyze branch October 18, 2021 09:41
@lieryan lieryan modified the milestones: 0.22.x, 0.21.x Oct 18, 2021
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

Successfully merging this pull request may close these issues.

None yet

1 participant