forked from python/cpython
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pythongh-74690: typing: Don't unnecessarily call `_get_protocol_attrs…
…` twice in `_ProtocolMeta.__instancecheck__`
- Loading branch information
1 parent
01a49d1
commit 51ca233
Showing
2 changed files
with
13 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
Misc/NEWS.d/next/Library/2023-03-30-23-51-22.gh-issue-74690.p2c4Co.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Speed up :func:`isinstance` checks against :func:`runtime-checkable | ||
protocols <typing.runtime_checkable>` by up to 6x. Patch by Alex Waygood |