KEMBAR78
Fix crash when reveal_locals() encounters a class definition by gvanrossum · Pull Request #5920 · python/mypy · GitHub
Skip to content

Conversation

gvanrossum
Copy link
Member

Fixes #5915.

The root cause were some improper casts when creating the local_nodes list. These were easy to fix by adding isinstance(node, Var) checks to the list comprehensions.

@gvanrossum
Copy link
Member Author

Since this was a super simple fix I'll just merge it now.

@gvanrossum gvanrossum merged commit 3c311c2 into python:master Nov 20, 2018
@gvanrossum gvanrossum deleted the fix-reveal_locals-crash branch November 20, 2018 01:15
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.

Internal error when using reveal_locals() inside class that contains an inner class

1 participant