Replies: 1 comment 5 replies
-
I believe you're asking for hover details to take into account |
Beta Was this translation helpful? Give feedback.
5 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.
-
Python allows assigning to
function.__signature__
to override the default signature for documentation and introspection. This is hugely useful for delegates. For example consider the following code:logged
now has no helpful signature. It only has*args, **kwargs
making its usage a bit more cumbersome. But by simply adding the following remedies that:Running natice tools like
pydoc
,python3 -m pydoc
or the builtin functionhelp(logged)
shows that this works and is helpful.Unfortunately, the VS-Code extension currently does not make use of this, so the code-insight is less useful than it could be.
Beta Was this translation helpful? Give feedback.
All reactions