Skip to content

Conversation

elazarg
Copy link
Contributor

@elazarg elazarg commented Oct 5, 2017

Quick fix for #3574 - fall back to Any when there are multiple definitions of a decorated function, if the decorator is not typing.overload. This might not be the best solution, but it's better than crashing.

(This also does not address the deeper problem - the fact that OverloadedFuncDefs are not necessarily overloaded functions)

Copy link
Member

@ilevkivskyi ilevkivskyi left a comment

Choose a reason for hiding this comment

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

After some thinking, it looks like a reasonable fix. I will merge this soon if there are no objections.

@ilevkivskyi ilevkivskyi merged commit a8f494c into python:master Oct 8, 2017
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.

2 participants