The other PR optimized this with check for exact python types. Just wondering about it if you might know. I guess this is likely enough, but possible the python scalar special case notices a difference. since that is what the other PR attempted to optimize.