flory.common.utilities

Utilities shared by package flory.

Functions

filter_kwargs

Filter the keyword arguments (dict) not accepted by a function.

filter_kwargs(kwargs_full, func)[source]

Filter the keyword arguments (dict) not accepted by a function.

Parameters:
  • kwargs_full (dict[str, Any]) – The dictionary for all keyword arguments, including the redundant ones.

  • func (Callable) – The function to check against.

Returns:

The filtered dictionary

Return type:

dict[str, Any]