File tree Expand file tree Collapse file tree 1 file changed +10
-9
lines changed Expand file tree Collapse file tree 1 file changed +10
-9
lines changed Original file line number Diff line number Diff line change 44from __future__ import annotations
55
66from collections import defaultdict , deque
7+ from collections .abc import Iterable , Mapping
78from pprint import pformat
89from textwrap import dedent , indent
910from typing import TYPE_CHECKING , Any , ClassVar
@@ -31,17 +32,17 @@ class _Error(Exception):
3132 def __init__ (
3233 self ,
3334 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 ,
3738 context = (),
3839 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 :
4546 super (_Error , self ).__init__ (
4647 message ,
4748 validator ,
You can’t perform that action at this time.
0 commit comments