Tin mới
AlexWaygood:improve-protocol-perf
GitHub CopilotWrite better code with AI
GitHub Copilot appDirect agents from issue to merge
CodespacesInstant dev environments
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
GitHub SponsorsFund open source developers
Copilot for BusinessEnterprise-grade AI features
Premium SupportEnterprise-grade 24/7 support
gh-74690: Micro-optimise typing._get_protocol_attrs cpython#103152
gh-74690: typing: Simplify and optimise _ProtocolMeta.__instancecheck__ cpython#103159
gh-74690: Further optimise typing._ProtocolMeta.__instancecheck__ cpython#103280
This PR backports the following CPython PRs (all by me), which, taken together, substantially improve the performance of isinstance() checks against runtime-checkable protocols on Python 3.12 compared to Python 3.11:
Backport several performance improvements for runtime-checkable proto…
Learn more about hiding disruptive comments
The reason will be displayed to describe this comment to others. Learn more.
Merge branch 'main' into improve-protocol-perf
Remove flake8-noqa from test-requirements.txt #138
This change seems to have broken the latest version of pydash when used with typing-extensions 4.6.0. There's a bug report about this here: dgilland/pydash#197.
This change seems to have broken the latest version of pydash when used with typing-extensions 4.6.0. There's a bug report about this here: dgilland/pydash#197.
Cannot parameterise typing_extensions.Protocol with a ParamSpec or TypeVarTuple on py310+ #181