mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-10 05:51:52 +08:00
Temporary workaround for pallets/werkzeug#1052
Starting with python/mypy#2521 mypy is performing stricter function signature checks. This makes the stubs diverge from the actual implementation but makes the stubs internally consistent. Since this is an actual typing issue in the base implementation, we need to defer to the original authors to fix it.
This commit is contained in:
4
third_party/2/werkzeug/wrappers.pyi
vendored
4
third_party/2/werkzeug/wrappers.pyi
vendored
@@ -94,7 +94,7 @@ class BaseResponse:
|
||||
def close(self): ...
|
||||
def __enter__(self): ...
|
||||
def __exit__(self, exc_type, exc_value, tb): ...
|
||||
def freeze(self, **kwargs): ...
|
||||
def freeze(self): ...
|
||||
def get_wsgi_headers(self, environ): ...
|
||||
def get_app_iter(self, environ): ...
|
||||
def get_wsgi_response(self, environ): ...
|
||||
@@ -191,4 +191,4 @@ class WWWAuthenticateMixin:
|
||||
|
||||
class Request(BaseRequest, AcceptMixin, ETagRequestMixin, UserAgentMixin, AuthorizationMixin, CommonRequestDescriptorsMixin): ...
|
||||
class PlainRequest(StreamOnlyMixin, Request): ...
|
||||
class Response(BaseResponse, ETagResponseMixin, ResponseStreamMixin, CommonResponseDescriptorsMixin, WWWAuthenticateMixin): ...
|
||||
class Response(ETagResponseMixin, BaseResponse, ResponseStreamMixin, CommonResponseDescriptorsMixin, WWWAuthenticateMixin): ... # FIXME: This is invalid but works around https://github.com/pallets/werkzeug/issues/1052
|
||||
|
||||
Reference in New Issue
Block a user