Broad wildcard import (ARCH2192)
Esta página aún no está disponible en tu idioma.
Key python.quality.wildcard-import · Severity warning · Category quality
from module import * pollutes the namespace, hides which name comes from where, and causes silent name collisions. Import only what you need.
Incorrect
Section titled “Incorrect”from os.path import *
p = join("a", "b")Correct
Section titled “Correct”from os.path import join
p = join("a", "b")Import only the names you use explicitly and drop the wildcard.