useless-import-alias / C0414#
Import alias does not rename original package
Used when an import alias is same as original package, e.g., using import numpy as numpy instead of import numpy as np.
import pandas as pandas # [useless-import-alias]
import pandas as pd
If you prefer to use "from-as" to explicitly reexport in API (
from fruit import orange as orange)
instead of using
__all__ this message will be a false positive.
--allow-reexport-from-package to allow explicit reexports by alias
Created by the imports checker.