From d371513b8092becfbddeb4f27af9cd24c2376d82 Mon Sep 17 00:00:00 2001 From: Brendan Long Date: Sat, 30 Mar 2019 13:44:10 -0400 Subject: [PATCH] werkzeug: ETagRequestMixin's functions are properties (#2894) This was causing mypy to incorrectly flag reads of these properties and complain that they're Callable, which is incorrect. --- third_party/2and3/werkzeug/wrappers.pyi | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/third_party/2and3/werkzeug/wrappers.pyi b/third_party/2and3/werkzeug/wrappers.pyi index b774d2133..4d193e93f 100644 --- a/third_party/2and3/werkzeug/wrappers.pyi +++ b/third_party/2and3/werkzeug/wrappers.pyi @@ -143,12 +143,19 @@ class AcceptMixin(object): def accept_languages(self) -> LanguageAccept: ... class ETagRequestMixin: + @property def cache_control(self): ... + @property def if_match(self): ... + @property def if_none_match(self): ... + @property def if_modified_since(self): ... + @property def if_unmodified_since(self): ... + @property def if_range(self): ... + @property def range(self): ... class UserAgentMixin: