Skip to content

Commit e39cf5a

Browse files
committed
Add cousin navigation
Signed-off-by: Cristian Le <[email protected]>
1 parent a463286 commit e39cf5a

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

tests/packages/importlib_editable/pkg/sub_a/__init__.py

+10
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,13 @@
33

44
from .pmod_b import square as psquare
55
from .emod_b import square as esquare
6+
7+
# Level one import cousin
8+
from .. import sub_b
9+
from ..sub_b.pmod_c import square as psquare_c
10+
from ..sub_b.emod_c import square as esquare_c
11+
12+
# Level one import distant cousin
13+
from ..sub_b import sub_c
14+
from ..sub_b.sub_c.pmod_d import square as psquare_d
15+
from ..sub_b.sub_c.emod_d import square as esquare_d

tests/packages/importlib_editable/pkg/sub_b/sub_c/__init__.py

+5
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,8 @@
33

44
from .pmod_d import square as psquare_d
55
from .emod_d import square as esquare_d
6+
7+
# Level one import cousin
8+
from .. import sub_d
9+
from ..sub_d.pmod_e import square as psquare_e
10+
from ..sub_d.emod_e import square as esquare_e

0 commit comments

Comments
 (0)