Commit 35a86ff
committed
Keep package namespace clean under lazy init
Alias the internal 'importlib'/'typing' imports to '_importlib'/'_typing' so
they no longer leak as public attributes of 'python_utils' (they appeared in
dir() and as python_utils.importlib / python_utils.typing under the lazy
__init__, which develop did not expose). Add an explicit '# pragma: no cover'
to the TYPE_CHECKING block since coverage's auto-exclusion only matches the
unaliased 'typing.TYPE_CHECKING' spelling.
Verified via a full public-API manifest diff against develop: the only
remaining differences are the two inherent consequences of deferring asyncio
(aio_timeout_generator's default iterable is now None instead of aio.acount,
and python_utils.time no longer re-exposes the 'aio'/'asyncio' modules).1 parent 28cbd34 commit 35a86ff
1 file changed
Lines changed: 8 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
59 | | - | |
| 58 | + | |
| 59 | + | |
60 | 60 | | |
61 | | - | |
| 61 | + | |
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| |||
155 | 155 | | |
156 | 156 | | |
157 | 157 | | |
158 | | - | |
| 158 | + | |
159 | 159 | | |
160 | 160 | | |
161 | | - | |
| 161 | + | |
162 | 162 | | |
163 | | - | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
164 | 166 | | |
165 | 167 | | |
166 | 168 | | |
| |||
0 commit comments