Skip to content

Fix _ComprehensionVisitor.get_pyobject()#436

Merged
lieryan merged 1 commit intomasterfrom
lieryan-fix-comprehension-analyze
Oct 18, 2021
Merged

Fix _ComprehensionVisitor.get_pyobject()#436
lieryan merged 1 commit intomasterfrom
lieryan-fix-comprehension-analyze

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.

1 participant