Skip to content

Conversation

BobTheBuidler
Copy link
Contributor

This PR builds off of #19884 to implement constant folding for str.format, which is only quasi-useful by itself but when combined with 19884 allows us to constant fold f-strings.

@BobTheBuidler BobTheBuidler changed the title feat: implement constant folding for str.format feat: implement constant folding for str.format and f-strings Sep 18, 2025

This comment has been minimized.

@BobTheBuidler

This comment was marked as resolved.

This comment has been minimized.

@BobTheBuidler BobTheBuidler changed the title feat: implement constant folding for str.format and f-strings feat: implement constant folding for str.format and f-strings [2/3] Oct 1, 2025

This comment has been minimized.

This comment has been minimized.

@BobTheBuidler BobTheBuidler marked this pull request as draft October 1, 2025 23:23
Copy link
Contributor

github-actions bot commented Oct 2, 2025

According to mypy_primer, this change doesn't affect type check results on a corpus of open source code. ✅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant