Types of class method aliases #11080
Sahil Jain (whoami730)
started this conversation in
General
Replies: 1 comment 2 replies
|
The portion that you see in parentheses is not the symbol type. It indicates the type of the declaration used to declare the symbol. In your example, def method2(self):
return self.method1() |
2 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.
I have a sample class -
Here is what mypy says -
And here is what pyright/pylance reports -
I wonder if it is possible to ensure that the second method is also shown as
(method)instead of as(variable)? Maybe via type hints or via some other way?All reactions