typing.get_type_hints(obj)
Return type hints for a function or method object.
This is often the same as obj.__annotations__
, but it handles forward references encoded as string literals, and if necessary adds Optional[t]
if a default value equal to None is set.
Please login to continue.