You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using multiple inheritance, the type checker does not complain if base classes have incompatible definitions. For example, this is not rejected:
import typing
class A:
def f(self, x: int) -> None: pass
class B:
def f(self, x: str) -> None: pass
class C(A, B): pass # No error, but should complain about f
Verify that all inherited definitions are compatible.
The text was updated successfully, but these errors were encountered:
When using multiple inheritance, the type checker does not complain if base classes have incompatible definitions. For example, this is not rejected:
Verify that all inherited definitions are compatible.
The text was updated successfully, but these errors were encountered: