Skip to content

Commit

Permalink
Resolve mypy error.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Jan 10, 2025
1 parent 7f35950 commit 8bd0803
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion responses/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ def __getitem__(self, idx: int) -> Call:
...

@overload
def __getitem__(self, idx: slice) -> List[Call]:
def __getitem__(self, idx: slice[int, int, int | None]) -> List[Call]:
...

def __getitem__(self, idx: Union[int, slice]) -> Union[Call, List[Call]]:
Expand Down

0 comments on commit 8bd0803

Please sign in to comment.