basedmypy icon indicating copy to clipboard operation
basedmypy copied to clipboard

support a `notabstract` decorator

Open KotlinIsland opened this issue 1 year ago • 0 comments

class A(ABC):
    @abstractmethod
    @classmethod
    def foo(): ...

    @notabstract
    @classmethod
    def bar(cls):
        print("hi")
A.foo()  # should be an error
A.bar()  # should be okay

maybe this could work for instances too, idk

related:

  • #752

KotlinIsland avatar Sep 05 '24 03:09 KotlinIsland