Skip to content

Commit 0151efd

Browse files
committed
Loosen the type for error paths.
1 parent ceb362a commit 0151efd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

jsonschema/exceptions.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
from jsonschema import _utils
1818

1919
if TYPE_CHECKING:
20-
from collections.abc import Iterable, Mapping, MutableMapping
20+
from collections.abc import Iterable, Mapping, MutableMapping, Sequence
2121

2222
from jsonschema import _types
2323

@@ -121,7 +121,7 @@ def create_from(cls, other: _Error):
121121
return cls(**other._contents())
122122

123123
@property
124-
def absolute_path(self) -> deque[str | int]:
124+
def absolute_path(self) -> Sequence[str | int]:
125125
parent = self.parent
126126
if parent is None:
127127
return self.relative_path
@@ -131,7 +131,7 @@ def absolute_path(self) -> deque[str | int]:
131131
return path
132132

133133
@property
134-
def absolute_schema_path(self) -> deque[str | int]:
134+
def absolute_schema_path(self) -> Sequence[str | int]:
135135
parent = self.parent
136136
if parent is None:
137137
return self.relative_schema_path

0 commit comments

Comments
 (0)