UniCoreFW

partial()

Enhanced partial with _argcount support.

Implementation

Override partial functions with enhanced versions

Example

add_five = UniCoreFW.partial(lambda a, b: a + b, 5)

Expected output: Function that adds 5 to its argument

Source Code

def partial(func: Callable, *bound_args, **bound_kwargs) -> Callable: return enhanced_partial(func, *bound_args, **bound_kwargs)