Add default_exceptions to werkzeug.exceptions (#2071)

This commit is contained in:
Charles-Axel Dein
2018-04-19 18:03:24 +02:00
committed by Jelle Zijlstra
parent db5137b756
commit 5818893a7f

View File

@@ -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