Uh oh!
There was an error while loading. Please reload this page.
Support importing types from nested packages - #5591
Conversation
chrisphilip322
commented
Sep 17, 2018
Is anyone available to look at this? |
JukkaL
commented
Sep 17, 2018
@ethanhs Do you have time to look at this? This is related to PEP 561. |
emmatyping
commented
Sep 17, 2018
Ah, sorry this PR got under my radar. I will take a look later this week. |
5126318 to
9e5548fComparechrisphilip322
commented
Sep 24, 2018
Hi @ethanhs, were you able to have a look at this last week? |
gvanrossum
commented
Sep 24, 2018
I'll review this unless @ethanhs steals it back from me again. |
gvanrossum
left a comment
There was a problem hiding this comment.
I apologize for the long, nit-picking review! This is good work, but since the code you're changing is rather subtle I think it would be good to make the code as clear as possible. Please take my suggestions as attempts to help clarify both the existing code and the code you added. Thanks!
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
| module_not_found(manager, caller_line, caller_state, id) | ||
| raise ModuleNotFound | ||
| else: | ||
| elif root_source: |
There was a problem hiding this comment.
This could just be if since the previous if ḅlock always raises.
There was a problem hiding this comment.
Personally, I prefer the explicitness of using elif when chaining if statements but if its an issue I can change it.
There was a problem hiding this comment.
In that case it would behoove you to change the if on L2375 to elif as well. :-) I'll let it slide.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
chrisphilip322
left a comment
There was a problem hiding this comment.
@gvanrossum Thanks very much for your review! If there is anything I didn't satisfactorily address please let me know.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
| module_not_found(manager, caller_line, caller_state, id) | ||
| raise ModuleNotFound | ||
| else: | ||
| elif root_source: |
There was a problem hiding this comment.
Personally, I prefer the explicitness of using elif when chaining if statements but if its an issue I can change it.
gvanrossum
left a comment
There was a problem hiding this comment.
I'll merge it now. Thanks for your efforts and for your attention to detail!
| module_not_found(manager, caller_line, caller_state, id) | ||
| raise ModuleNotFound | ||
| else: | ||
| elif root_source: |
There was a problem hiding this comment.
In that case it would behoove you to change the if on L2375 to elif as well. :-) I'll let it slide.
Attempts to address problems discussed in issue #1645. I enhanced the
mypy.build._find_moduleto search forpy.typedmarker files at all package levels instead of at the top level. This change currently doesn't update stub package loading but I have added a test that fails without my change and passes with it.