Skip to content

Commit

Permalink
Loosen the type for error paths.
Browse files Browse the repository at this point in the history
  • Loading branch information
Julian committed Jun 5, 2024
1 parent ceb362a commit 0151efd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions jsonschema/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
from jsonschema import _utils

if TYPE_CHECKING:
from collections.abc import Iterable, Mapping, MutableMapping
from collections.abc import Iterable, Mapping, MutableMapping, Sequence

from jsonschema import _types

Expand Down Expand Up @@ -121,7 +121,7 @@ def create_from(cls, other: _Error):
return cls(**other._contents())

@property
def absolute_path(self) -> deque[str | int]:
def absolute_path(self) -> Sequence[str | int]:
parent = self.parent
if parent is None:
return self.relative_path
Expand All @@ -131,7 +131,7 @@ def absolute_path(self) -> deque[str | int]:
return path

@property
def absolute_schema_path(self) -> deque[str | int]:
def absolute_schema_path(self) -> Sequence[str | int]:
parent = self.parent
if parent is None:
return self.relative_schema_path
Expand Down

0 comments on commit 0151efd

Please sign in to comment.