File tree 1 file changed +10
-9
lines changed
1 file changed +10
-9
lines changed Original file line number Diff line number Diff line change 4
4
from __future__ import annotations
5
5
6
6
from collections import defaultdict , deque
7
+ from collections .abc import Iterable , Mapping
7
8
from pprint import pformat
8
9
from textwrap import dedent , indent
9
10
from typing import TYPE_CHECKING , Any , ClassVar
@@ -31,17 +32,17 @@ class _Error(Exception):
31
32
def __init__ (
32
33
self ,
33
34
message : str ,
34
- validator = _unset ,
35
- path = (),
36
- cause = None ,
35
+ validator : str | _utils . Unset = _unset ,
36
+ path : Iterable [ str | int ] = (),
37
+ cause : Exception | None = None ,
37
38
context = (),
38
39
validator_value = _unset ,
39
- instance = _unset ,
40
- schema = _unset ,
41
- schema_path = (),
42
- parent = None ,
43
- type_checker = _unset ,
44
- ):
40
+ instance : Any = _unset ,
41
+ schema : Mapping [ str , Any ] | bool | _utils . Unset = _unset ,
42
+ schema_path : Iterable [ str | int ] = (),
43
+ parent : _Error | None = None ,
44
+ type_checker : _types . TypeChecker | _utils . Unset = _unset ,
45
+ ) -> None :
45
46
super (_Error , self ).__init__ (
46
47
message ,
47
48
validator ,
You can’t perform that action at this time.
0 commit comments