mirror of https://github.com/astral-sh/ruff
This commit (mostly) re-implements the support for `__all__` in ty-proper, but inside the auto-import AST scanner. When `__all__` isn't present in a module, we fall back to conventions to determine whether a symbol is exported or not: https://docs.python.org/3/library/index.html However, in keeping with current practice for non-auto-import completions, we continue to provide sunder and dunder names as re-exports. When `__all__` is present, we respect it strictly. That is, a symbol is exported *if and only if* it's in `__all__`. This is somewhat stricter than pylance seemingly is. I felt like it was a good idea to start here, and we can relax it based on user demand (perhaps through a setting). |
||
|---|---|---|
| .. | ||
| src | ||
| tests/e2e | ||
| Cargo.toml | ||