Skip to content
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

Reprocess decorators instead of the function they decorate #4989

Merged
merged 2 commits into from May 2, 2018

Conversation

msullivan
Copy link
Collaborator

This fixes an issue where decorators on overloaded methods
would sometimes report false positives.

This fixes an issue where decorators on overloaded methods
would sometimes report false positives.
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.

LGTM. It seems that now we type check the decorator expressions both when type checking the surrounding target and when type checking the decorated function, but I don't see why this would be a problem.

Before merging, I'd suggest considering an alternative, perhaps slightly simpler approach of adding a flag to decorated FuncDefs that will cause the method override check to be skipped.

@msullivan
Copy link
Collaborator Author

Good call. Done.

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.

LGTM!

@msullivan msullivan merged commit d47ac41 into master May 2, 2018
@msullivan msullivan deleted the decorator-nonsense branch May 2, 2018 21:17
@msullivan
Copy link
Collaborator Author

Oh, darn. I didn't fix the commit message.

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.

None yet

3 participants