mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-24 04:41:30 +08:00
Add default_exceptions to werkzeug.exceptions (#2071)
This commit is contained in:
committed by
Jelle Zijlstra
parent
db5137b756
commit
5818893a7f
4
third_party/3/werkzeug/exceptions.pyi
vendored
4
third_party/3/werkzeug/exceptions.pyi
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user