Skip to content

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