@@ -1200,8 +1200,6 @@ def __getattr__(self, attr: str) -> T_IterableObj:
|
1200 | 1200 | return list.__getattribute__(self, attr) |
1201 | 1201 | |
1202 | 1202 | def __getitem__(self, index: Union[SupportsIndex, int, slice, str]) -> T_IterableObj: # type: ignore[override] |
1203 | | -assert isinstance(index, (int, str, slice)), "Index of IterableList should be an int or str" |
1204 | | - |
1205 | 1203 | if isinstance(index, int): |
1206 | 1204 | return list.__getitem__(self, index) |
1207 | 1205 | elif isinstance(index, slice): |
@@ -1214,8 +1212,6 @@ def __getitem__(self, index: Union[SupportsIndex, int, slice, str]) -> T_Iterabl
|
1214 | 1212 | # END handle getattr |
1215 | 1213 | |
1216 | 1214 | def __delitem__(self, index: Union[SupportsIndex, int, slice, str]) -> None: |
1217 | | -assert isinstance(index, (int, str)), "Index of IterableList should be an int or str" |
1218 | | - |
1219 | 1215 | delindex = cast(int, index) |
1220 | 1216 | if not isinstance(index, int): |
1221 | 1217 | delindex = -1 |
|