Skip to content

Add __setstate__ for BaseException #7987

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 30, 2022

Conversation

pranavrajpal
Copy link
Contributor

BaseException has a __setstate__ method at runtime that sets __dict__ to the passed in parameter. See here for the implementation.

This came up in python/mypy#12901 (see the first Pandera error in python/mypy#12901 (comment)).

BaseException has a __setstate__ method at runtime that sets __dict__ to
the passed in parameter.
@github-actions
Copy link
Contributor

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

@srittau srittau merged commit 8f33ff9 into python:master May 30, 2022
@srittau
Copy link
Collaborator

srittau commented May 30, 2022

Thanks!

@pranavrajpal pranavrajpal deleted the base-exception-setstate branch May 30, 2022 17:26
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