Skip to content

Commit 451a526

Browse files
committed
review
1 parent 0cfaa00 commit 451a526

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
@@ -1340,7 +1340,7 @@ def __getitem__( # type: ignore[override] # pyright: ignore[reportIncompatible
13401340
return list.__getitem__(self, index)
13411341
else:
13421342
try:
1343-
return self.__getattr__(cast(str, index))
1343+
return self.__getattr__(index)
13441344
except AttributeError as e:
13451345
raise IndexError(f"No item found with id {self._prefix}{index}") from e
13461346
# END handle getattr

0 commit comments

Comments
 (0)