Is there a way to get a type object, given the name of that type? So, for example:
get_type('str') -> str
I am building a dict mapping various cases to a class which should be instantiated to handle them. It seems overkill to import everything and risk circular imports. So I thought I could specify them with strings, and look up the type at point of use. But how do I look up the type?
It seems unlikely that this hasn't been asked before, but I've searched and not found it.