We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi again! 🙂
In my use-case, it is very important to show what generic arguments types have. Let's see it with real-life example.
This is how my Maybe is show in the new version of this plugin:
Maybe
But, that's how it is defined:
class Maybe( BaseContainer, SupportsKind1['Maybe', _ValueType], MaybeBased2[_ValueType, None], metaclass=ABCMeta, ):
See, how many information about typing is lost right now! 😞
I propose to show all available typing information if :generics: key is given.
:generics:
Here's a quick demo to show that it is possible.
>>> from typing import Generic >>> from typing import TypeVar >>> T = TypeVar('T') >>> class Example(Generic[T]): ... ... >>> Example.__mro__ (<class '__main__.Example'>, <class 'typing.Generic'>, <class 'object'>) >>> Example.__orig_bases__ (typing.Generic[~T],)
Related to #48
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi again! 🙂
In my use-case, it is very important to show what generic arguments types have.
Let's see it with real-life example.
This is how my
Maybe
is show in the new version of this plugin:But, that's how it is defined:
See, how many information about typing is lost right now! 😞
I propose to show all available typing information if
:generics:
key is given.Here's a quick demo to show that it is possible.
Related to #48
The text was updated successfully, but these errors were encountered: