File tree 1 file changed +4
-4
lines changed
stubs/jsonschema/jsonschema 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -12,8 +12,8 @@ STRONG_MATCHES: frozenset[str]
12
12
13
13
class _Error (Exception ):
14
14
message : str
15
- path : deque [str ]
16
- relative_path : deque [str ]
15
+ path : deque [str | int ]
16
+ relative_path : deque [str | int ]
17
17
schema_path : deque [str ]
18
18
relative_schema_path : deque [str ]
19
19
context : list [ValidationError ] | None
@@ -27,7 +27,7 @@ class _Error(Exception):
27
27
self ,
28
28
message : str ,
29
29
validator : _utils .Unset | None | protocols .Validator = ...,
30
- path : Sequence [str ] = ...,
30
+ path : Sequence [str | int ] = ...,
31
31
cause : Any | None = ...,
32
32
context : Sequence [ValidationError ] = ...,
33
33
validator_value = ...,
@@ -39,7 +39,7 @@ class _Error(Exception):
39
39
@classmethod
40
40
def create_from (cls : type [Self ], other : _Error ) -> Self : ...
41
41
@property
42
- def absolute_path (self ) -> Sequence [str ]: ...
42
+ def absolute_path (self ) -> Sequence [str | int ]: ...
43
43
@property
44
44
def absolute_schema_path (self ) -> Sequence [str ]: ...
45
45
@property
You can’t perform that action at this time.
0 commit comments