Repository navigation
[ty] Avoid recursive protocol intersection stack overflows - #29059
Open
charliermarsh wants to merge 6 commits into
Open
charliermarsh wants to merge 6 commits into
charliermarsh wants to merge 6 commits into
Conversation
charliermarsh
had a problem deploying
to
automations
October 1, 2026 19:20 — with
GitHub Actions
Failure
Typing conformance resultsNo changes detected ✅Current numbersThe percentage of diagnostics emitted that were expected errors held steady at 98.24%. The percentage of expected errors that received a diagnostic held steady at 98.24%. The number of fully passing files held steady at 134/146. |
Memory usage reportSummary
Significant changesClick to expand detailed breakdownflake8
trio
sphinx
prefect
|
|
Merging this PR will improve performance by 5.25%
Performance Changes
Tip Curious why performance improved? Comment Comparing Footnotes
|
charliermarsh
force-pushed
the
charlie/ty-4099-protocol-intersection
branch
from
October 1, 2026 22:02
179bd63 to
0c82815
Compare
charliermarsh
had a problem deploying
to
automations
October 1, 2026 22:02 — with
GitHub Actions
Error
charliermarsh
changed the base branch from
main
to
charlie/ty-call-inference-generic-context
October 1, 2026 22:17
charliermarsh
force-pushed
the
charlie/ty-4099-protocol-intersection
branch
from
October 1, 2026 22:18
aa625b8 to
7503019
Compare
Base automatically changed from
charlie/ty-call-inference-generic-context
to
main
October 1, 2026 23:17
charliermarsh
force-pushed
the
charlie/ty-4099-protocol-intersection
branch
from
October 1, 2026 23:41
7503019 to
9a5050f
Compare
charliermarsh
marked this pull request as ready for review
October 2, 2026 00:10
charliermarsh
force-pushed
the
charlie/ty-4099-protocol-intersection
branch
from
October 5, 2026 14:43
6cbb3d6 to
c88701f
Compare
charliermarsh
force-pushed
the
charlie/ty-4099-protocol-intersection
branch
from
October 7, 2026 02:00
c88701f to
206a543
Compare
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
We now avoid a stack overflow when checking recursive protocol methods with intersection types:
Specifically, we now specialize protocol members only when they are accessed or compared, avoiding eager expansion of recursive return types.
Closes astral-sh/ty#4099.