I have this class in python defined like this
class MyClass(object):
@property
def property1(self):
# type: () -> pb.data.Property1
@property
def property2(self):
# type: () -> pb.data.Property2
How can I use reflection to read all the properties that the class has and then make a map from the property name to its class
something like
{"property1":"pb.data.Property1", "property2":"pb.data.Property2"}
Remember that the first line in each property is a comment. Is there a clear way to do it?