]> git.ipfire.org Git - thirdparty/starlette.git/commitdiff
Fix ImmutableMultiDict getlist return type (#1235)
authorAmin Alaee <mohammadamin.alaee@gmail.com>
Sat, 25 Sep 2021 22:50:03 +0000 (02:20 +0330)
committerGitHub <noreply@github.com>
Sat, 25 Sep 2021 22:50:03 +0000 (00:50 +0200)
starlette/datastructures.py

index 5149a6e2e501a42db1d8cc6a56e62137342db1b9..17dc46eb6a854a5dffd7470b19bd115350f6b769 100644 (file)
@@ -266,7 +266,7 @@ class ImmutableMultiDict(typing.Mapping):
         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: