As a follow up to #4341, this ticket tracks the open question about whether or not to allow the following override (and similar cases with classmethod, or in reverse):
class Base:
def f(self, x: int) -> None:
...
class Sub(Base):
# ty: invalid-method-override
@staticmethod
def f(x: int) -> None:
...
See #4341 (comment) for an explanation of why this is not sound (and why we might want to allow it anyway).
As a follow up to #4341, this ticket tracks the open question about whether or not to allow the following override (and similar cases with
classmethod, or in reverse):See #4341 (comment) for an explanation of why this is not sound (and why we might want to allow it anyway).