Skip to content

protocols_runtime_checkable.py: change a multiline isinstance() call to be single-line#2219

Merged
AlexWaygood merged 1 commit intomainfrom
overlap-isinstance-line
Mar 13, 2026
Merged

protocols_runtime_checkable.py: change a multiline isinstance() call to be single-line#2219
AlexWaygood merged 1 commit intomainfrom
overlap-isinstance-line

Conversation

@AlexWaygood
Copy link
Member

My draft PR implementing this check in ty would cause us to emit an error on the first line of the isinstance() call expression, which doesn't align with this test's expectations currently. By moving it all onto one line, all other previously passing type checkers continue to pass this assertion, but ty will too.

@AlexWaygood AlexWaygood added the topic: conformance tests Issues with the conformance test suite label Mar 13, 2026
@AlexWaygood AlexWaygood merged commit 1df1565 into main Mar 13, 2026
7 checks passed
@AlexWaygood AlexWaygood deleted the overlap-isinstance-line branch March 13, 2026 22:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

topic: conformance tests Issues with the conformance test suite

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants