What type annotation do you use when a function is taking a type annotation as an argument?
Why am I taking a type annotation as an argument?
I have a function that tries to parse a string based on a type annotation.
E.g.
def get_appropriate_type_converter(type_annotation) -> Callable[[str], 'type_annotation']:
e.g.
get_appropriate_type_converter(Dict[str, int])("aaa:3,bbb:4") == dict(aaa=3, bbb=4)
And I want to type annotate this function.