Skip to content

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

Merged
JukkaL merged 1 commit into
masterfrom
fix-1747-partial-type-none
Jun 27, 2016
Merged

JukkaL merged 1 commit into
masterfrom
fix-1747-partial-type-none

Conversation

@gvanrossum

Copy link
Copy Markdown
Member

Fixes #1747.

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

@JukkaL

JukkaL commented Jun 27, 2016

Copy link
Copy Markdown
Collaborator

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

gvanrossum commented Jun 27, 2016 via email

Copy link
Copy Markdown
Member Author

@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