-
Notifications
You must be signed in to change notification settings - Fork 124
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Overhauled Python import resolution logic
Stable in more complex cases. Capable of giving more detailed warnings. More closely matches real import logic. Closes #156
- Loading branch information
Showing
9 changed files
with
234 additions
and
87 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
from .simple import * |
27 changes: 27 additions & 0 deletions
27
tests/python/pypackagecomplex/complex/wildall/simple/__init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
from ...subpackage import * | ||
|
||
__all__ = [ | ||
'SimpleClass', | ||
'simple_function', | ||
'public_chain', | ||
'module_level_method', | ||
'does_not_exist', | ||
] | ||
|
||
|
||
class SimpleClass(object): | ||
def simple_method(self): | ||
return 5 | ||
|
||
|
||
class NotAllClass(object): | ||
def not_all_method(self): | ||
return 5 | ||
|
||
|
||
def simple_function(): | ||
return 5 | ||
|
||
|
||
def not_all_function(): | ||
return 5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
from ..subpackage import * |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
from ..wildcard import module_level_method | ||
from ..wildcard import public_chain |
1 change: 1 addition & 0 deletions
1
tests/python/pypackagecomplex/complex/wildwildchain/__init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
from ..wildchain import * |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters