I'm not a native English speaker, so please try to avoid abbreviations or slang in your answers.
I want to try to declare an abstract class field in a Python base class.
I know that python can declare an abstract object field via @property and @abstractmethod, but I haven't checked for a viable abstract class field.
I want to be able to implement such use case:
class AbcClass(metaclass=ABCMeta):
@abstractproperty
class_field: int # class-level static field
# inherite abstract class
class MyClass(AbcClass):
class_field = 42
About related thread:
Python: Create Abstract Static Property within Class: This post does give some viable options, but since I'm trying metaprogramming, using __init_subclass__ causes IDE support to become difficult.