diff --git a/third_party/2and3/werkzeug/exceptions.pyi b/third_party/2and3/werkzeug/exceptions.pyi index 6289d80fa..44ffbc054 100644 --- a/third_party/2and3/werkzeug/exceptions.pyi +++ b/third_party/2and3/werkzeug/exceptions.pyi @@ -1,4 +1,4 @@ -from typing import Any, Dict +from typing import Any, Dict, NoReturn class HTTPException(Exception): code = ... # type: Any @@ -147,4 +147,6 @@ class HTTPVersionNotSupported(HTTPException): class Aborter: mapping = ... # type: Any def __init__(self, mapping=None, extra=None): ... - def __call__(self, code, *args, **kwargs): ... + def __call__(self, code, *args, **kwargs) -> NoReturn: ... + +def abort(status: Any, *args: Any, **kwargs: Any) -> NoReturn: ... diff --git a/third_party/2and3/werkzeug/wrappers.pyi b/third_party/2and3/werkzeug/wrappers.pyi index 49920eb6c..37db383a4 100644 --- a/third_party/2and3/werkzeug/wrappers.pyi +++ b/third_party/2and3/werkzeug/wrappers.pyi @@ -6,7 +6,7 @@ from typing import ( from wsgiref.types import WSGIEnvironment, InputStream from .datastructures import ( - CombinedMultiDict, EnvironHeaders, Headers, ImmutableMultiDict, + Authorization, CombinedMultiDict, EnvironHeaders, Headers, ImmutableMultiDict, MultiDict, TypeConversionDict, HeaderSet, ) @@ -139,7 +139,8 @@ class UserAgentMixin: def user_agent(self): ... class AuthorizationMixin: - def authorization(self): ... + @property + def authorization(self) -> Optional[Authorization]: ... class StreamOnlyMixin: disable_data_descriptor = ... # type: Any