Skip to content

Commit

Permalink
#6: fix type hint for getitem, again.
Browse files Browse the repository at this point in the history
  • Loading branch information
perrygoy committed Feb 13, 2024
1 parent b6db106 commit 6de1038
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions screenpy_requests/questions/body_of_the_last_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ class BodyOfTheLastResponse:
)
"""

body_parts: list[str | int]
body_parts: list[str | int | slice]

def __getitem__(self, key: str | int) -> BodyOfTheLastResponse:
def __getitem__(self, key: str | int | slice) -> BodyOfTheLastResponse:
self.body_parts.append(key)
return self

Expand Down

0 comments on commit 6de1038

Please sign in to comment.