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

@classmethod and @staticmethod were not shown in error messages when cached #11793

Closed
wants to merge 2 commits into from
Closed

Conversation

sobolevn
Copy link
Member

@sobolevn sobolevn commented Dec 19, 2021

Things I've tried before refactoring so many lines:

  1. Better FuncDef.type.definition handling in fixup.py. It was not successful
  2. Reassinging .definition in check_method_override_for_base_with_name. It was broken, because when cached functions do not have .arguments and pretty_callable requires it

So, I went this - more explicit - path.

Closes #11791
CC @wrobell

@github-actions

This comment has been minimized.

This pull request was closed.
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.

Confusing error message for a missing classmethod decorator
1 participant