Is there any way to access to the typing __annotations __ of the parent class?
In the above example, the class Student inherit from class Person, but It does not contains the typing annotations from the Person class.
class Person:
name: str
address: str
def __init__(self):
print(self.__annotations__)
class Student(Person):
year: int
person = Person()
# {'name': <class 'str'>, 'address': <class 'str'>}
student = Student()
# {'year': <class 'int'>}
# HERE I would expect the name and the address props