Answer the question
In order to leave comments, you need to log in
How to get property value in child class?
Let's say there is a class with the following property:
@property
@functools.lru_cache(maxsize=64)
def permission(self) -> int:
return 1
@property
@functools.lru_cache(maxsize=64)
def permission(self) -> int:
return Base.__init__(self, self.bot).permission + 1
Answer the question
In order to leave comments, you need to log in
Did they forget to tell you about super in the school of programmers?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question