-
-
Notifications
You must be signed in to change notification settings - Fork 998
Accept exception_handlers as Mapping #1139
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
Conversation
This comment has been minimized.
This comment has been minimized.
I do think |
@antonagestam Will you update this? |
I'll try to get to addressing this soon. |
Updated to use a contravariant typevar, which makes this also close #1142. |
This was closed by #1360. Thanks for the PR @antonagestam ! :) |
@Kludex Oh, note that I updated this PR to solve the problem without introducing |
Cool! I've opened again! :) |
This change does two things: the first is that it communicates to the caller that the passed dict isn't going to be mutated. The second is that it allows the caller to pass any Mapping without first casting it to a dict, which is very redundant since that already happens inside
__init__
.