not_none#

openstef_core.utils.not_none[T](value: Optional[T]) → T[source]#

Assert that a value is not None.

Parameters:

value (Optional[T]) – The value to check.

Return type:

T

Returns:

The value if it is not None.

Raises:

ValueError – If the value is None.