File tree Expand file tree Collapse file tree 5 files changed +27
-41
lines changed
tests/packages/importlib_editable/pkg Expand file tree Collapse file tree 5 files changed +27
-41
lines changed Original file line number Diff line number Diff line change 11# Don't let ruff sort imports in this file, we want to keep them with the comments as is
22# for clarity.
3- # ruff: noqa: I001
3+ # ruff: noqa: I001, F401
44# mypy: ignore-errors
55
66# Level zero import global modules
7- import emod
8- import pmod
7+ from emod import square as esquare
8+ from pmod import square as psquare
99
1010# Level one pure modules
11- from . import pmod_a
11+ from .pmod_a import square as psquare_a
1212
1313# Level one extension modules
14- from . import emod_a
14+ from .emod_a import square as esquare_a
1515
1616# Level one subpackages
1717from . import sub_a
1818
1919# Level two pure modules
20- from .sub_a import pmod_b
20+ from .sub_a . pmod_b import square as psquare_b
2121
2222# Level two extension modules
23- from .sub_a import emod_b
23+ from .sub_a . emod_b import square as esquare_b
2424
2525# Level two subpackages
2626from .sub_b import sub_c
2727
2828# Level three pure modules
29- from .sub_b .sub_c import pmod_d
29+ from .sub_b .sub_c . pmod_d import square as psquare_d
3030
3131# Level three extension modules
32- from .sub_b .sub_c import emod_d
33-
34- __all__ = [
35- "emod" ,
36- "emod_a" ,
37- "emod_b" ,
38- "emod_d" ,
39- "pmod" ,
40- "pmod_a" ,
41- "pmod_b" ,
42- "pmod_d" ,
43- "sub_a" ,
44- "sub_c" ,
45- ]
32+ from .sub_b .sub_c .emod_d import square as esquare_d
Original file line number Diff line number Diff line change 1- from . import emod_b , pmod_b
1+ # ruff: noqa: I001, F401
2+ # mypy: ignore-errors
23
3- __all__ = ["emod_b" , "pmod_b" ]
4+ from .pmod_b import square as psquare
5+ from .emod_b import square as esquare
Original file line number Diff line number Diff line change 11# Don't let ruff sort imports in this file, we want to keep them with the comments as is
22# for clarity.
3- # ruff: noqa: I001
3+ # ruff: noqa: I001, F401
4+ # mypy: ignore-errors
45
56# Level one pure modules
6- from . import pmod_c
7+ from .pmod_c import square as psquare_c
78
89# Level one extension modules
9- from . import emod_c
10+ from .emod_c import square as esquare_c
1011
1112# Level one subpackages
1213from . import sub_c
1314
1415# Level two pure modules
15- from .sub_c import pmod_d
16+ from .sub_c . pmod_d import square as psquare_d
1617
1718# Level two extension modules
18- from .sub_c import emod_d
19-
20- __all__ = [
21- "emod_c" ,
22- "emod_d" ,
23- "pmod_c" ,
24- "pmod_d" ,
25- "sub_c" ,
26- ]
19+ from .sub_c .emod_d import square as esquare_d
Original file line number Diff line number Diff line change 1- from . import emod_d , pmod_d
1+ # ruff: noqa: I001, F401
2+ # mypy: ignore-errors
23
3- __all__ = ["emod_d" , "pmod_d" ]
4+ from .pmod_d import square as psquare_d
5+ from .emod_d import square as esquare_d
Original file line number Diff line number Diff line change 1- from . import emod_e , pmod_e
1+ # ruff: noqa: I001, F401
2+ # mypy: ignore-errors
23
3- __all__ = ["pmod_e" , "emod_e" ]
4+ from .pmod_e import square as psquare_e
5+ from .emod_e import square as esquare_e
You can’t perform that action at this time.
0 commit comments