Skip to content

Commit c0c7f1e

Browse files
committed
chore(jsonschema): exceptions._Error.context cannot be None
The __init__() argument is defined as Sequence[ValidationError], and self.context is a list initialized from said argument.
1 parent cffeff0 commit c0c7f1e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stubs/jsonschema/jsonschema/exceptions.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class _Error(Exception):
1919
relative_path: deque[str | int]
2020
schema_path: deque[str | int]
2121
relative_schema_path: deque[str | int]
22-
context: list[ValidationError] | None
22+
context: list[ValidationError]
2323
cause: Exception | None
2424
validator: Validator | Unset
2525
validator_value: Any | Unset

0 commit comments

Comments
 (0)