consider-using-from-import / R0402#

Message emitted:

Use 'from %s import %s' instead


Emitted when a submodule of a package is imported and aliased with the same name. E.g., instead of ``import concurrent.futures as futures`` use ``from concurrent import futures``

Correct code:

from os import path

Problematic code:

import os.path as path  # [consider-using-from-import]

Created by the imports checker.