Skip to content

Fix recent crashes in forward refs - #4120

Merged
JukkaL merged 3 commits into
python:masterfrom
ilevkivskyi:fix-new-forward-crashes
Oct 25, 2017
Merged

JukkaL merged 3 commits into
python:masterfrom
ilevkivskyi:fix-new-forward-crashes

Conversation

@ilevkivskyi

Copy link
Copy Markdown
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.)

@Daenyth Daenyth left a comment

Copy link
Copy Markdown

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

Daenyth commented Oct 24, 2017

Copy link
Copy Markdown

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

@JukkaL

JukkaL commented Oct 24, 2017

Copy link
Copy Markdown
Collaborator

Can you fix the merge conflict?

@JukkaL JukkaL left a comment

Copy link
Copy Markdown
Collaborator

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
Copy Markdown
Member Author

@JukkaL

Can you fix the merge conflict?

Fixed!

@ilevkivskyi

Copy link
Copy Markdown
Member Author

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

@JukkaL JukkaL left a comment

Copy link
Copy Markdown
Collaborator

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