Skip to content

Commit

Permalink
jsonschema: {relative,absolute}_path can hold ints
Browse files Browse the repository at this point in the history
  • Loading branch information
DMRobertson committed May 29, 2022
1 parent c94fb40 commit a7da4d9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions stubs/jsonschema/jsonschema/exceptions.pyi
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from _typeshed import Self, SupportsRichComparison
from collections import deque
from collections.abc import Callable, Container, Iterable, Sequence
from typing import Any
from typing import Any, Union

from jsonschema import _utils, protocols

Expand All @@ -12,8 +12,8 @@ STRONG_MATCHES: frozenset[str]

class _Error(Exception):
message: str
path: deque[str]
relative_path: deque[str]
path: deque[str|int]
relative_path: deque[str|int]
schema_path: deque[str]
relative_schema_path: deque[str]
context: list[ValidationError] | None
Expand All @@ -27,7 +27,7 @@ class _Error(Exception):
self,
message: str,
validator: _utils.Unset | None | protocols.Validator = ...,
path: Sequence[str] = ...,
path: Sequence[str|int] = ...,
cause: Any | None = ...,
context: Sequence[ValidationError] = ...,
validator_value=...,
Expand All @@ -39,7 +39,7 @@ class _Error(Exception):
@classmethod
def create_from(cls: type[Self], other: _Error) -> Self: ...
@property
def absolute_path(self) -> Sequence[str]: ...
def absolute_path(self) -> Sequence[Union[str|int]]: ...
@property
def absolute_schema_path(self) -> Sequence[str]: ...
@property
Expand Down

0 comments on commit a7da4d9

Please sign in to comment.