mypy
mypy copied to clipboard
[mypyc] feat: implement try_getting_literal in preallocate helper [1/1]
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