Skip to content

Conversation

@jceresini
Copy link

@jceresini jceresini commented Dec 23, 2025

Addresses: #15167

Technically, it inherits from either json.JSONDecodeError or simplejson.errors.JSONDecodeError, but the latter is compatible: https://github.com/simplejson/simplejson/blob/master/simplejson/errors.py#L41-L47

I've included a test that fails prior to the changes to stubs/requests/requests/exceptions.pyi but passes now.

@github-actions

This comment has been minimized.

@jceresini jceresini changed the title [requests] requests.exceptions.JSONDecodeError inherits from json.JNDecodeError [requests] requests.exceptions.JSONDecodeError inherits from json.JSONDecodeError Dec 23, 2025
@github-actions
Copy link
Contributor

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

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.

1 participant