Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Reprocess decorators instead of the function they decorate #4989
JukkaL left a comment
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.