]> git.ipfire.org Git - thirdparty/starlette.git/commit
Align __getitem__ type with scope type (#1118)
authorSam Burba <github@samburba.com>
Sat, 18 Sep 2021 13:16:05 +0000 (06:16 -0700)
committerGitHub <noreply@github.com>
Sat, 18 Sep 2021 13:16:05 +0000 (15:16 +0200)
commit217019b36303ea16a5869ad076d835e4fdc1cef3
treef5a5135d49de092d83edd6bed4718e67c49d916d
parent8360c0958dbef1deb838328921649e5a6a08eebb
Align __getitem__ type with scope type (#1118)

Scope does not only contain strings, see full spec here:
https://asgi.readthedocs.io/en/latest/specs/www.html#websocket-connection-scope

Fixes #1117

Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
starlette/requests.py