I am using the python function typing.get_type_hints(). Unfortunately this function raise an error when I pass a local class that contains a reference to itself.
typing.get_type_hints()