pymovements.utils.checks.check_is_none_is_mutual#

pymovements.utils.checks.check_is_none_is_mutual(**kwargs: Any) None#

Check if two values are either both None or both have a value.

Parameters:

**kwargs (Any) – Keyword argument dictionary with 2 keyword arguments.

Raises:

ValueError – If exclusively one of the keyword argument values is None, or if number of keyword arguments is not 2.