Skip to content

Don't crash in try_infer_partial_type() if var.type is None. #1752

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
Jun 27, 2016

Conversation

gvanrossum
Copy link
Member

Fixes #1747.

This is a rather dumb fix -- I just avoid the crash. But I don't feel like understanding it.

@JukkaL
Copy link
Collaborator

JukkaL commented Jun 27, 2016

There probably is another underlying issue but it's not clear what is going on. This is a reasonable stopgap measure. We can revisit this if we encounter a small code example that resurfaces this problem elsewhere in the code.

@JukkaL JukkaL merged commit 53d6e24 into master Jun 27, 2016
@gvanrossum
Copy link
Member Author

gvanrossum commented Jun 27, 2016 via email

@gvanrossum gvanrossum deleted the fix-1747-partial-type-none branch June 27, 2016 19:20
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.

Exception in partial_type.type
2 participants