Skip to content

Commit 37a1f4f

Browse files
committed
review
1 parent c440559 commit 37a1f4f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎git/util.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1339,7 +1339,7 @@ def __getitem__( # type: ignore[override] # pyright: ignore[reportIncompatible
13391339
return list.__getitem__(self, index)
13401340
else:
13411341
try:
1342-
return self.__getattr__(cast(str, index))
1342+
return self.__getattr__(index)
13431343
except AttributeError as e:
13441344
raise IndexError(f"No item found with id {self._prefix}{index}") from e
13451345
# END handle getattr

0 commit comments

Comments
 (0)