mypy icon indicating copy to clipboard operation
mypy copied to clipboard

[mypyc] feat: implement try_getting_literal in preallocate helper [1/1]

Open BobTheBuidler opened this issue 3 months ago • 0 comments

During the rtuple boxing stage, if any of the values are a known Literal type we can skip the struct access and just load the static literal. I had already tried doing this before but I don't think it was implemented robustly, this improves the identification of Literal types

BobTheBuidler avatar Oct 02 '25 02:10 BobTheBuidler