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
{{ message }}
Repository navigation
Multiple inheritance checks do not consider callable objects as possible subtypes of usual functions #14852
It seems Mypy's method TypeChecker.check_compatibility for checking multiple inheritance compatibility does not consider that callable objects can be subtypes of usual functions, but method TypeChecker.check_method_override_for_base_with_name does so for single inheritance.
For the following example, Mypy reports:
Definition of "f" in base class "A1" is incompatible with definition in base class "A2" [misc]
Definition of "f" in base class "A2" is incompatible with definition in base class "A1" [misc]
Activity
Let the multiple inheritance checks consider callable objects as poss…
Multiple inheritance considers callable objects as subtypes of functi…
Multiple inheritance considers callable objects as subtypes of functi…