Azure / Azure/azure-sdk-for-python

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

Aperta
#40,020 0 commenti 0 reazioni 1 assegnatario Rivendicata da @l0lawrence Vedi su GitHub
pylint
Lingua principale
Python
Stelle
5.6k
Fork
3.4k
Merge medio
2g 2h
PR unite (30g)
213

Descrizione

![Image](https://github.com/user-attachments/assets/3f791f3a-a2b5-49f6-8ba1-b2bf216c7b20)

- 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.

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.