We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents aa6b7e9 + 8dc7552 commit bf51609Copy full SHA for bf51609
git/util.py
@@ -1200,8 +1200,6 @@ def __getattr__(self, attr: str) -> T_IterableObj:
1200
return list.__getattribute__(self, attr)
1201
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
if isinstance(index, int):
1206
return list.__getitem__(self, index)
1207
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
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
delindex = cast(int, index)
1220
if not isinstance(index, int):
1221
delindex = -1
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments