Add more control for inlay hints on function return types (e.g., suppress None) #8010
Contrabang
started this conversation in
Enhancement
Replies: 1 comment
-
|
Thanks for the suggestion. Moving to discussions for up votes. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
The current setting
python.analysis.inlayHints.functionReturnTypesis useful, but it applies uniformly to all functions. This can introduce some unnecessary visual noise, especially in contexts like test files (e.g., when using pytest), where most functions implicitly return None. When many functions return None, displaying inlay hints for each one adds clutter without providing meaningful information.This could be improved by:
python.analysis.inlayHints.functionReturnTypes.suppressNoneExample
Beta Was this translation helpful? Give feedback.
All reactions