Look the code below:
class A():
pass
class B():
def __init__(self) -> None:
self.a: A = None
b = B()
assert (b.a.something == 'A') or (something(b) == 'A') or (something(b.a) == 'A')
something is a method or function to call to get the answer desired.
I want to recover at runtime the type annotation for property a of the class B.
In other words, I want to get a return saying that B.a would be of type A.
There are any way to get it?
Thanks for help.