Skip to content

Commit 1f387dd

Browse files
authored
jsonschema: fix type of validator on errors
I noticed this while improving mypy's reachability analysis in python/mypy#20660 (because the type of validator is wrong, mypy would think some code is unreachable)
1 parent fa659b1 commit 1f387dd

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
@@ -21,7 +21,7 @@ class _Error(Exception):
2121
relative_schema_path: deque[str | int]
2222
context: list[ValidationError]
2323
cause: Exception | None
24-
validator: Validator | Unset
24+
validator: str | Unset
2525
validator_value: Any | Unset
2626
instance: Any | Unset
2727
schema: Mapping[str, Any] | bool | Unset

0 commit comments

Comments
 (0)