Skip to content

Fix recent crashes in forward refs #4120

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 3 commits into from
Oct 25, 2017

Conversation

ilevkivskyi
Copy link
Member

Fixes #4097

This adds processing of forward references in two nodes that were previously missing: OverloadedFuncDef and NewTypeExpr.info.

(Note that some tests use # type: ignore, the original crash was discovered during serialization with errors ignored.)

Copy link

@Daenyth Daenyth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This fixes the crash I reported

@Daenyth
Copy link

Daenyth commented Oct 24, 2017

I'd appreciate if this could be merged soon so that I can upgrade from 0.521

@JukkaL
Copy link
Collaborator

JukkaL commented Oct 24, 2017

Can you fix the merge conflict?

Copy link
Collaborator

@JukkaL JukkaL left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fixes! This looks good, but I'll still need to test this with internal Dropbox codebases once the merge conflict has been resolved.

@ilevkivskyi
Copy link
Member Author

@JukkaL

Can you fix the merge conflict?

Fixed!

@ilevkivskyi
Copy link
Member Author

@JukkaL I also now removed some code duplication in code added for NewType and existing code for NamedTuple (see last commit).

Copy link
Collaborator

@JukkaL JukkaL left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, it's good to have less code duplication!

@JukkaL JukkaL merged commit 880bf84 into python:master Oct 25, 2017
JukkaL pushed a commit that referenced this pull request Oct 31, 2017
This adds processing of forward references in two nodes that were 
previously missing: `OverloadedFuncDef` and `NewTypeExpr.info`.

(Note that some tests use `# type: ignore`, the original crash was 
discovered during serialization with errors ignored.)

Fixes #4097.
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.

3 participants