def _safe_init_sig(cls):
    """
    Get the signature of the constructor method of the given class `cls`. If it is
    a builtin class, this typically raises an exception in which case we return
    a generic signature that seems typical of builtin constructors.
    """

    try:
        return inspect.signature(cls)
    except Exception:
        return builtin_init_sig

    Get the signature of the constructor method of the given class `cls`. If it is
    a builtin class, this typically raises an exception in which case we return
    a generic signature that seems typical of builtin constructors.
    
src/core/trulens/core/utils/pyschema.py