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

Support resolve_call_path resolution for same-file definitions #5486

Closed
charliermarsh opened this issue Jul 3, 2023 · 0 comments · Fixed by #8572
Closed

Support resolve_call_path resolution for same-file definitions #5486

charliermarsh opened this issue Jul 3, 2023 · 0 comments · Fixed by #8572
Labels
core Related to core functionality

Comments

@charliermarsh
Copy link
Member

If a user specifies a classmethod decorator or other setting based on a call path, we only respect that call path when the decorator is imported.

For example, if the file is foo.py, and user defines a method like:

def bar():
  ...

Then if the user lists "foo.bar" as a call path for a call path-based setting, we only respect it in files that import foo or from foo import bar etc. -- we wouldn't respect it in foo.py itself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Related to core functionality
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant