Skip to content

jsonschema: fix type of validator on errors#15353

Merged
srittau merged 2 commits intomainfrom
hauntsaninja-patch-1
Feb 1, 2026
Merged

jsonschema: fix type of validator on errors#15353
srittau merged 2 commits intomainfrom
hauntsaninja-patch-1

Conversation

@hauntsaninja
Copy link
Collaborator

@hauntsaninja hauntsaninja commented Feb 1, 2026

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)

Source: https://github.com/python-jsonschema/jsonschema/blob/c4f8b68cb0b826fcb770c28b5296dacfbca1367c/jsonschema/exceptions.py#L58 I also checked some downstream uses of it

hauntsaninja and others added 2 commits January 31, 2026 22:02
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)
@github-actions
Copy link
Contributor

github-actions bot commented Feb 1, 2026

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

@srittau srittau merged commit c013563 into main Feb 1, 2026
48 checks passed
@srittau srittau deleted the hauntsaninja-patch-1 branch February 1, 2026 16:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants