def type_doc(name: str):
    param: inspect.Parameter = sig.parameters[name]
    cls = getattr(param.annotation, '__qualname__', repr(param.annotation))
    if (param.default is not param.empty):
        return f'{cls}, optional (default: {param.default!r})'
    else:
        return cls
def type_doc(name: str):
    param: inspect.Parameter = sig.parameters[name]
    cls = getattr(param.annotation, '__qualname__', repr(param.annotation))
    if (param.default is not param.empty):
        return f'{cls}, optional (default: {param.default!r})'
    else:
        return cls