Allow Response subclasses to set default_mimetype as None

This matches the type - see 92c6380248/src/werkzeug/sansio/response.py (L94).
This commit is contained in:
Adam Dangoor 2023-03-26 14:38:11 +01:00 committed by David Lord
parent c9a5660cfd
commit b626a93879
No known key found for this signature in database
GPG key ID: 7A1C87E3F5BC42A8

View file

@ -151,7 +151,7 @@ class Response(ResponseBase):
Added :attr:`max_cookie_size`.
"""
default_mimetype = "text/html"
default_mimetype: t.Optional[str] = "text/html"
json_module = json