Skip to content

Abstract class methods? #577

@sid-kap

Description

@sid-kap

This might not be the right place to put this, but is there any interest in adding a decorator for abstract class methods? (And potentially supporting it in MyPy?)

Currently, annotating a method with both @abstractmethod and @classmethod results in a runtime error. I see some suggestions on how to make this work on StackOverflow, but of course those custom decorators would not be supported in MyPy.

I would be interested in either making using both decorators work, or adding a new decorator.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions