Azure / Azure/azure-sdk-for-python
[pylint] Importing public name into public module from another public module prohibit
- Dominant language
- Python
- Stars
- 5.6k
- Forks
- 3.4k
- Avg merge
- 1d 21h
- Merged PRs (30d)
- 193
Description

- 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.
Contributor guide
Assessment
This issue has not been assessed yet.