8000 gh-110682: Ignore `__match_args__` from `__instancecheck__` in protocols by sobolevn · Pull Request #110683 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-110682: Ignore __match_args__ from __instancecheck__ in protocols #110683

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 2 commits into from
Oct 12, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update Misc/NEWS.d/next/Library/2023-10-11-11-00-11.gh-issue-110682.b…
…XRFaX.rst

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
  • Loading branch information
sobolevn and AlexWaygood authored Oct 11, 2023
commit ac9f92ea1eebb40bfc2f49f9f0f80c629caa800c
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
Protocols used to check for ``__match_args__`` attribute in
``__instancecheck__``. Now, this attribute is ignored.
:func:`runtime-checkable protocols <typing.runtime_checkable>` used
to consider ``__match_args__`` a protocol member in
``__instancecheck__`` if it was present on the protocol. Now, this attribute is
ignored if it is present.
0