Skip to content

Commit

Permalink
#6: fix type hint for getitem.
Browse files Browse the repository at this point in the history
  • Loading branch information
perrygoy committed Feb 13, 2024
1 parent 5dc7047 commit b6db106
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion screenpy_requests/questions/body_of_the_last_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class BodyOfTheLastResponse:

body_parts: list[str | int]

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

Expand Down

0 comments on commit b6db106

Please sign in to comment.