Fix tuple formatting inside generator expression