Skip to content

Commit

Permalink
document double clicking inlay hints
Browse files Browse the repository at this point in the history
  • Loading branch information
DetachHead committed Jan 27, 2025
1 parent 95562d9 commit 9864610
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions docs/benefits-over-pyright/pylance-features.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ initial implementation of the semantic highlighting provider was adapted from th

basedpyright contains several improvements and bug fixes to the original implementation adapted from [pyright-inlay-hints](https://github.com/jbradaric/pyright-inlay-hints).

basedpyright also supports double-clicking to insert inlay hints. unlike pylance, this also works on `Callable` types:

![](./double-click-inlay-hint.gif)

## docstrings for compiled builtin modules

many of the builtin modules are written in c, meaning the pyright language server cannot statically inspect and display their docstrings to the user. unfortunately they are also not available in the `.pyi` stubs for these modules, as [the typeshed maintainers consider it to be too much of a maintanance nightmare](https://github.com/python/typeshed/issues/4881#issuecomment-1275775973).
Expand Down

0 comments on commit 9864610

Please sign in to comment.