mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-06 12:14:27 +08:00
Allow Flask.Response.default_mimetype to be None (#4563)
This commit is contained in:
2
third_party/2and3/flask/wrappers.pyi
vendored
2
third_party/2and3/flask/wrappers.pyi
vendored
@@ -31,6 +31,6 @@ class Request(RequestBase, JSONMixin):
|
||||
def blueprint(self) -> Optional[str]: ...
|
||||
|
||||
class Response(ResponseBase, JSONMixin):
|
||||
default_mimetype: str = ...
|
||||
default_mimetype: Optional[str] = ...
|
||||
@property
|
||||
def max_cookie_size(self) -> int: ...
|
||||
|
||||
2
third_party/2and3/werkzeug/wrappers.pyi
vendored
2
third_party/2and3/werkzeug/wrappers.pyi
vendored
@@ -110,7 +110,7 @@ _SelfT = TypeVar("_SelfT", bound=BaseResponse)
|
||||
class BaseResponse:
|
||||
charset: str
|
||||
default_status: int
|
||||
default_mimetype: str
|
||||
default_mimetype: Optional[str]
|
||||
implicit_sequence_conversion: bool
|
||||
autocorrect_location_header: bool
|
||||
automatically_set_content_length: bool
|
||||
|
||||
Reference in New Issue
Block a user