From 5818893a7fd6e39425d1dbdb429695c15acbf384 Mon Sep 17 00:00:00 2001 From: Charles-Axel Dein Date: Thu, 19 Apr 2018 18:03:24 +0200 Subject: [PATCH] Add default_exceptions to werkzeug.exceptions (#2071) --- third_party/3/werkzeug/exceptions.pyi | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/third_party/3/werkzeug/exceptions.pyi b/third_party/3/werkzeug/exceptions.pyi index a91abba92..6289d80fa 100644 --- a/third_party/3/werkzeug/exceptions.pyi +++ b/third_party/3/werkzeug/exceptions.pyi @@ -1,4 +1,4 @@ -from typing import Any +from typing import Any, Dict class HTTPException(Exception): code = ... # type: Any @@ -15,6 +15,8 @@ class HTTPException(Exception): def get_response(self, environ=None): ... def __call__(self, environ, start_response): ... +default_exceptions: Dict[int, HTTPException] + class BadRequest(HTTPException): code = ... # type: Any description = ... # type: Any