Tin mới
AlexWaygood:runtime-checkable-tests
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
It appears we currently have no tests for how classes with properties interact with isinstance checks for protocols decorated with @runtime_checkable.
isinstance on runtime_checkable Protocol has side-effects for @property methods #102433
: Add tests for how properties interact with `typing.r…
Don't assert undesirable behaviour; cover other situations too
Update Lib/test/test_typing.py
Learn more about hiding disruptive comments
The reason will be displayed to describe this comment to others. Learn more.
Update Lib/test/test_typing.py
: Add tests for how classes with properties interact w…
: Add tests for how classes with properties interact w…
: Add tests for how classes with properties interact with `i…
: Add tests for how classes with properties interact with `i…
: Add tests for how classes with properties interact w…
Backport test coverage improvements for runtime-checkable protocols python/typing_extensions#136