def _resolve_class(self, clazz: Any) -> object:
arguments = {}<EOL>if hasattr(clazz.__init__, '<STR_LIT>'):<EOL><INDENT>annotations = clazz.__init__.__annotations__<EOL>for name, type_hint in annotations.items():<EOL><INDENT>if name != '<STR_LIT>':<EOL><INDENT>arguments[name] = self.resolve(type_hint)<EOL><DEDENT><DEDENT><DEDENT>return clazz(**arguments)<EOL>
Constructs an instance based on the function annotations on an object's
__init__ method
:argument clazz the class to instantiate
:return the instantiated class