baybe.utils.basic.is_all_instance¶
- baybe.utils.basic.is_all_instance(x: Collection[Any], t: type[_T], /)[source]¶
Typeguard to check if all elements in a collection are of a certain type.
- Return type:
TypeGuard
[Collection
[TypeVar
(_T
)]]
Typeguard to check if all elements in a collection are of a certain type.
TypeGuard
[Collection
[TypeVar
(_T
)]]