How to avoid Any in list comprehensions with small unions

This might be useful for someone who comes across this post.