Skip to content

Move [de]serialize() methods to SymbolNode. #1798

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

Merged
merged 1 commit into from
Jul 4, 2016
Merged

Conversation

gvanrossum
Copy link
Member

Reid's recent #1785 inspired me to move the (near) abstract base methods [de]serialize() from Node to SymbolNode, with no ill effect. I think the key was changing the type of RefExpr.node from Node to SymbolNode -- running mypy on itself suggested that this is how it's used, except for one cast that now disappeared!

@gvanrossum gvanrossum merged commit b6ec28b into master Jul 4, 2016
@gvanrossum gvanrossum deleted the move_serialization branch July 4, 2016 04:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant