]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-74690: typing: Don't unnecessarily call `_get_protocol_attrs` twice in `_ProtocolM...
authorAlex Waygood <Alex.Waygood@Gmail.com>
Fri, 31 Mar 2023 17:37:24 +0000 (18:37 +0100)
committerGitHub <noreply@github.com>
Fri, 31 Mar 2023 17:37:24 +0000 (18:37 +0100)
commit9048d73f7a5c58be21988250c381f866586687a0
tree34eab4eb226656a666ae7dafbd06ae8c5250da67
parent80163e17d3f826067c5d95198db7696287beb416
gh-74690: typing: Don't unnecessarily call `_get_protocol_attrs` twice in `_ProtocolMeta.__instancecheck__` (#103141)

Speed up `isinstance()` calls against runtime-checkable protocols
Lib/typing.py