basedmypy
basedmypy copied to clipboard
`Abstract`/`abstract` annotation/decorator
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
...