Fixes https://github.com/PyCQA/isort/issues/2167 by issuing a second call to finder() using the joined parts of the from X import Y in case Y is a submodule, and X.Y was specified in a section. The second call is only issued if we match the default section with a default reasoning, so this should be fully backwards-compatible.
Fixes https://github.com/PyCQA/isort/issues/2167 by issuing a second call to
finder()
using the joined parts of thefrom X import Y
in caseY
is a submodule, andX.Y
was specified in a section. The second call is only issued if we match the default section with a default reasoning, so this should be fully backwards-compatible.