-
Pyright does not check that methods have a consistent type during multiple inheritance. For instance, in the following: class A:
def f(self) -> int:
return 1
class B:
def f(self) -> str:
return 'b'
class C(A, B): pass Mypy (0.910) says:
But Pyright (1.1.166) doesn’t complain. |
Beta Was this translation helpful? Give feedback.
Answered by
erictraut
Sep 7, 2021
Replies: 1 comment 1 reply
-
It's a good suggestion. I've added an enhancement request issue here: #2273. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
Pyprohly
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It's a good suggestion. I've added an enhancement request issue here: #2273.