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

[pylint] Importing public name into public module from another public module prohibit #40020

Open
l0lawrence opened this issue Mar 11, 2025 · 0 comments
Assignees
Labels

Comments

@l0lawrence
Copy link
Member

Image

  • azure/core/tracing/common.py has the definition and implementation of change_context.
  • azure/core/tracing/decorator.py has an import like from .common import change_context, so this import makes azure.core.tracing.decorator.change_context a public API.
  • Ideally we'd want this to be imported as from .common import change_context as _change_context
  • This is only a problem with public modules/namespaces. If there is an underscore-prefix anywhere in the module name, (i.e. azure.core._internal.utils, then this shouldn't apply.
@l0lawrence l0lawrence self-assigned this Mar 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant