importmagic icon indicating copy to clipboard operation
importmagic copied to clipboard

sometimes make private names available

Open glyph opened this issue 3 years ago • 0 comments

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/.

glyph avatar Oct 05 '22 05:10 glyph