Remove type hints from signature help when Type checking mode is set to off #2766
miron
started this conversation in
Enhancement
Replies: 1 comment
-
Moving this issue to discussion as an enhancement request for comments and upvotes. |
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Environment data
Expected behavior
Original view of signature with very good readability
Actual behavior
Crammed display of parameter values , type hints, literal ellipses, ... with very bad readability, wordwrapped in a tiny window.
Other important information like default values is missing.
Because type checking is turned off by default, type hint information makes no sense in that setting.
Code Snippet / Additional information
Although I knew about type hints already, it took me a month to realize what was going on.
My brain automatically skipped over the signature.
Type hints are great, but not in this format:
Here the original signature as displayed by help():
sort_values(self, by, axis: 'Axis' = 0, ascending=True, inplace: 'bool' = False, kind: 'str' = 'quicksort', na_position: 'str' = 'last', ignore_index: 'bool' = False, key: 'ValueKeyFunc' = None)
Beta Was this translation helpful? Give feedback.
All reactions