Skip to content

Explain the NumPy import completion setting - #739

Open
Boulea7 wants to merge 1 commit into
python-lsp:developfrom
Boulea7:docs/numpy-import-completions
Open

Boulea7 wants to merge 1 commit into
python-lsp:developfrom
Boulea7:docs/numpy-import-completions

Conversation

@Boulea7

@Boulea7 Boulea7 commented Nov 30, 2026

Copy link
Copy Markdown

Refs #704.

Explain how to get NumPy submodule completions and why keeping NumPy in the default runtime import list can help with documentation for universal functions. The setting description is also shown by editors that use the JSON schema.

I reproduced the three dotted imports over stdio with NumPy 2.5.5 and Jedi 0.19.2 and 0.20.1. The defaults returned no suggestions. With an empty list the same requests returned 33, 10 and 33 suggestions. In fresh processes, removing NumPy also left numpy.cosh with an empty docstring on both Jedi versions and on NumPy 1.23.5 with Jedi 0.18.2, reproducing the tradeoff behind #281.

Regenerated CONFIGURATION.md with the repository script. Prepared and tested with OpenAI Codex.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant