Sublime Forum

Python function/method docstrings are not showing in code completions

#1

So I use LSP/LSP-pyright for Python code completions. The problem I have though is that It does not show the docstrings for functions and methods like seen here:
image

The only time I have noticed it providing docstrings is for my own functions
image

So, how do I fix this so that it shows docstrings of built-in functions/methods?

0 Likes

#2

That’s expected in current LSP-pyright. I have implemented related feature (Python installation is required to be used to generate Python stdlib stubs depending on its version and OS) in my private plugin but I don’t have time to port it to LSP-pyright yet.

0 Likes