Skip to content

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

Open
@l0lawrence

Description

@l0lawrence

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions