sob/hooks.py
def type_(model: Union[type, abc.Model]) -> type:
    """
    Get the type of metadata required for an object
    """
    hooks_type: type
    assert_is_instance(
        "model",
        model,
        (type, abc.Object, abc.Dictionary, abc.Array),
    )
    if isinstance(model, type):
        hooks_type = (
            Object
            if issubclass(model, abc.Object)
            else Array
            if issubclass(model, abc.Array)
            else Dictionary
        )
    else:
        hooks_type = (
            Object
            if isinstance(model, abc.Object)
            else Array
            if isinstance(model, abc.Array)
            else Dictionary
        )
    return hooks_type

    Get the type of metadata required for an object
    
Get the type of metadata required for an object
Get the type of metadata required for an object
def type_(model: Union[type, abc.Model]) -> type:
    hooks_type: type
    assert_is_instance(
        "model",
        model,
        (type, abc.Object, abc.Dictionary, abc.Array),
    )
    if isinstance(model, type):
        hooks_type = (
            Object
            if issubclass(model, abc.Object)
            else Array
            if issubclass(model, abc.Array)
            else Dictionary
        )
    else:
        hooks_type = (
            Object
            if isinstance(model, abc.Object)
            else Array
            if isinstance(model, abc.Array)
            else Dictionary
        )
    return hooks_type
def type_ ( model : Union [ type , abc . Model ] ) -> type : hooks_type : type assert_is_instance ( "model" , model , ( type , abc . Object , abc . Dictionary , abc . Array ) , ) if isinstance ( model , type ) : hooks_type = ( Object if issubclass ( model , abc . Object ) else Array if issubclass ( model , abc . Array ) else Dictionary ) else : hooks_type = ( Object if isinstance ( model , abc . Object ) else Array if isinstance ( model , abc . Array ) else Dictionary ) return hooks_type
Get the type of metadata required for an object
Get the type of metadata required for an object
"""
    Get the type of metadata required for an object
    """
model
Union[type, abc.Model]