def get_type(arg: Any) -> Optional[str]:
    if isinstance(arg, inspect.Parameter):
        return None
    if isinstance(arg, nodes.Argument):
        return str((arg.variable.type or arg.type_annotation))
    raise AssertionError
def get_type(arg: Any) -> Optional[str]:
    if isinstance(arg, inspect.Parameter):
        return None
    if isinstance(arg, nodes.Argument):
        return str((arg.variable.type or arg.type_annotation))
    raise AssertionError