Skip to content

API Reference

fire_run

smart_partial(function, **kwargs)

Partial function that keeps documentation

Parameters:

Name Type Description Default
function function

The original function

required
**kwargs

The arguments to be stored onto the funtion

{}

Returns: function (function): Partialized function with all documentation

Source code in apb_spatial_computer_vision/fire_run.py
 7
 8
 9
10
11
12
13
14
15
16
17
def smart_partial(function,**kwargs):
    """
    Partial function that keeps documentation

    Args:
        function (function): The original function
        **kwargs: The arguments to be stored onto the funtion
    Returns:
        function (function): Partialized function with all documentation
    """
    return update_wrapper(partial(function,**kwargs),function)