shadowed-import / W0416#

Message emitted:

Shadowed %r (imported line %s)

Description:

Used when a module is aliased with a name that shadows another import.

Problematic code:

from pathlib import Path

import FastAPI.Path as Path  # [shadowed-import]

Correct code:

from pathlib import Path

import FastAPI.Path as FastApiPath

Created by the imports checker.