Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Retry section lookup for from+import statements, if defaulted #2168

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

thejcannon
Copy link

Fixes #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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Firstparty + from ... import ... corner case
1 participant