Within a single package, sometimes names beginning with underscores are things that need to be imported internally; implementation modules might be private. So if I'm working in src/foo/_bar.py and _baz is defined in src/foo/_qux.py, I want to see that import available. However, not all private symbols should be indexed; if I'm in src/xyz, I should not see any private imports from foo/.
Within a single package, sometimes names beginning with underscores are things that need to be imported internally; implementation modules might be private. So if I'm working in
src/foo/_bar.py
and_baz
is defined insrc/foo/_qux.py
, I want to see that import available. However, not all private symbols should be indexed; if I'm insrc/xyz
, I should not see any private imports fromfoo/
.