Skip to content

no error when calling abstract staticmethod/classmethod #14939

Open
@DetachHead

Description

@DetachHead
from abc import ABC, abstractmethod

class Foo(ABC):
    @staticmethod
    @abstractmethod
    def foo() -> Foo:
        ...


Foo.foo() # no error

playground

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions