Fixed #23968 -- Replace list comprehension with generator comprehension when possible

```py
params = {k: v for k, v in kwargs.items() if '__' not in k}
```