- qspec. has_getitem ( a )[source]
-
Check if
aimplements__getitem__so thata[i]can be used andTypeGuardit. Arrays with shape()do not support indexing.- Parameters:
-
- aAny
The object to check.
- Returns:
-
- has_getitemTypeGuard[HasGetItem]
Whether
aimplements__getitem__.