You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Revealed an issue in websocket.py in which bytes were used when it
should have been str. This avoided being a bug because something
down the line was converting it to str but it was still a logical
type error.
The change to httputil.py was taken from tornadoweb#3329 (thanks mslynch).
Closestornadoweb#3329Fixestornadoweb#3328
HTTPHeaders.get
should returnstr | None
, but type checkers aren't able to infer that because it extendsMutableMapping
without type parameters:yields
Union[Any, None]
on mypy andUnknown | None
on Pyright.Adding the type parameters
[str, str]
to the extendedMutableMapping
would correct the type tostr | None
.The text was updated successfully, but these errors were encountered: