From 576ada74c65462e005aff63b133c433859c2c98e Mon Sep 17 00:00:00 2001 From: Lukasz Langa Date: Thu, 22 Dec 2016 14:53:04 -0800 Subject: [PATCH] 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. --- third_party/2/werkzeug/wrappers.pyi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/third_party/2/werkzeug/wrappers.pyi b/third_party/2/werkzeug/wrappers.pyi index 90e32ae96..7924bcbf8 100644 --- a/third_party/2/werkzeug/wrappers.pyi +++ b/third_party/2/werkzeug/wrappers.pyi @@ -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