Skip to content

Commit

Permalink
Fix ImmutableMultiDict getlist return type (#1235)
Browse files Browse the repository at this point in the history
  • Loading branch information
aminalaee committed Sep 25, 2021
1 parent ddc751a commit 134eb0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion starlette/datastructures.py
Expand Up @@ -266,7 +266,7 @@ def __init__(
self._dict = {k: v for k, v in _items}
self._list = _items

def getlist(self, key: typing.Any) -> typing.List[str]:
def getlist(self, key: typing.Any) -> typing.List[typing.Any]:
return [item_value for item_key, item_value in self._list if item_key == key]

def keys(self) -> typing.KeysView:
Expand Down

0 comments on commit 134eb0b

Please sign in to comment.