How to get the value of the property in the child class?

Suppose you have a class with the following property:
@property
@functools.lru_cache(maxsize=64)
def permission(self) -> int:
 return 1

we inherit this class, and it would be nice to get a permission value from the parent. How to do it? Something
@property
@functools.lru_cache(maxsize=64)
def permission(self) -> int:
 return Base.__init__(self, self.bot).permission + 1

Will not work because most likely overwrite some of the properties of a class, which occurs during initialization.
March 19th 20 at 09:21
1 answer
March 19th 20 at 09:23
At school programmers forgot to tell you about super?
5c9fdab65973c072029485.png
Aggressive option, but if I create a copy of a class type - the super it does not work, as I remember. - lavern.Considine commented on March 19th 20 at 09:26

Find more questions by tags OOPPython