Skip to content

bloqade.lanes.utils.no_none_elements_tuple

← Module overview

functionno_none_elements_tuplesource

bloqade.lanes.utils.no_none_elements_tuple

Signature
def no_none_elements_tuple(xs: tuple[T | None, ...]) -> TypeGuard[tuple[T, ...]]

Check that there are no None elements in the tuple.

Parameters

NameTypeDescription
xstuple[T | None, ...]A tuple that may contain None elements.

Returns

TypeGuard[tuple[T, ...]]A TypeGuard indicating that all elements are not None.

source