gh-74690: Document changes made to runtime-checkable protocols in 3.12 by AlexWaygood · Pull Request #103348 · python/cpython · GitHub

github.com

Tin mới

AlexWaygood:document-runtime-protocol-changes

GitHub CopilotWrite better code with AI

GitHub Copilot appDirect agents from issue to merge

ActionsAutomate any workflow

CodespacesInstant dev environments

IssuesPlan and track work

Code ReviewManage code changes

Code QualityEnforce quality at merge

GitHub Advanced SecurityFind and fix vulnerabilities

Code securitySecure your code as you build

Secret protectionStop leaks before they start

View all use cases

Financial services

View all industries

Software Development

GitHub SponsorsFund open source developers

Copilot for BusinessEnterprise-grade AI features

Premium SupportEnterprise-grade 24/7 support

Pull requests 2.6k

Security and quality 0

gh-74690: typing: Don't unnecessarily call _get_protocol_attrs twice in _ProtocolMeta.__instancecheck__ #103141

gh-74690: Micro-optimise typing._get_protocol_attrs #103152

gh-74690: typing: Simplify and optimise _ProtocolMeta.__instancecheck__ #103159

gh-74690: typing: Call _get_protocol_attrs and _callable_members_only at protocol class creation time, not during isinstance() checks #103160

gh-74690: Further optimise typing._ProtocolMeta.__instancecheck__ #103280

gh-103193: Micro-optimise helper functions for inspect.getattr_static #103195

gh-103193: Use LBYL idioms rather than EAFP in inspect.getattr_static #103318

gh-103193: Speedup and inline inspect._is_type #103321

Performance of typing._ProtocolMeta._get_protocol_attrs and isinstance #74690

: Document changes made to runtime-checkable protocols …

awaiting core review

awaiting core review

Make sphinx-lint happy

View reviewed changes

Address review: make more concise

View reviewed changes

Update Misc/NEWS.d/next/Library/2023-04-07-15-09-26.gh-issue-74690.0f…

View reviewed changes

Learn more about hiding disruptive comments

The reason will be displayed to describe this comment to others. Learn more.

Lack of space after Sphinx role not detected sphinx-contrib/sphinx-lint#60

: Document changes made to runtime-checkable protocols …