One correct code is
```python
def __init__(
        self,
        sql_select='COUNT(1)', sql_from=None, sql_where='1', sql_query=None,
        **params):
    if sql_query ....  # <== with your indentation this would be on the same level as **params, we don't want that
```
Indentation can be increased by more than one level to distinguish from the following lines, and I can't find anything about the position of ``` ): ``` ? Are we talking about PEP8? I did not read the full spec but in the PEP8 Style guide, see http://www.python.org/dev/peps/pep-0008/#indentation , the example I just gave you seems to be ok.
If you're ok with that I'll put this version
My linter did not tell me about any PEP8 problem in my version, and I did not test yours. Maybe the 3 of them are good? What do you think?