- qspec.has_getitem ( a )[source]
Check if
aimplements__getitem__so thata[i]can be used andTypeGuardit.- Parameters:
-
- aAny
The object to check.
- Returns:
-
- has_getitemTypeGuard[qspec.qtypes.HasGetItem]
if
aimplements__getitem__.
Check if a implements __getitem__ so that a[i] can be used and TypeGuard it.
The object to check.
if a implements __getitem__.