basedmypy icon indicating copy to clipboard operation
basedmypy copied to clipboard

`Abstract`/`abstract` annotation/decorator

Open KotlinIsland opened this issue 3 years ago • 0 comments

People use abc.abstractmethod for usages that have nothing to do with abc.ABC.

Also it can't be used on attributes.

@abstract
class A:
    a: Abstract[int]

class B(A): # error: make abstract or implement members
    ...

KotlinIsland avatar Jul 26 '22 02:07 KotlinIsland