-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Make --ignore-missing-imports less strict #5228
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. This makes import semantics across different forms of imports more consistent and predictable.
Have you verified that doesn't break anything in internal Dropbox codebases?
Not yet, I will check this in next few hours, I will merge if |
Of course testpr will fail, since it already fails with the current master.
:-( Maybe you can compare the errors you get without and with this PR.
…On Mon, Jun 18, 2018, 06:37 Ivan Levkivskyi ***@***.***> wrote:
Have you verified that doesn't break anything in internal Dropbox
codebases?
Not yet, I will check this in next few hours, I will merge if testpr
passes.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#5228 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ACwrMoHxrSY9iCkTBt6vD47QthDt0N10ks5t960ogaJpZM4UqsHF>
.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Is there any documentation that should be updated along with this? |
This is a good idea, I will add some docs. |
I was finally able to check, this passes |
Fixes #5226
Currently,
import existing_package.non_existing_mod
(with--ignore-missing-imports
) allows subsequentbut doesn't allow a direct call
With this change both are allowed. This doesn't solve the problem of partial packages, but makes
--ignore-missing-imports
more consistent with the flag name IMO.