Skip to content

pylint: [pylint] C0330:Wrong hanging indentation before block (add 4 spaces). #48

@mrkafk

Description

@mrkafk

Operating system: Win7 x64
Python version: 3.6.0
Black version: black==18.3a3 installed from pypi into venv
Does also happen on master:

Code:

def doc_dl_job(
    doc_ids,
    dl_folder,
    root_url=None,
    api_username=None,
    api_password=None,
    updatedcontent_root_url=None,
):
    '''Download documents by list of doc ids.'''
    api = API(api_username, api_password, root_url=root_url)

Pylint complains about all lines with function arguments.

Command: black -l 100 testfile.py

Metadata

Metadata

Assignees

No one assigned

    Labels

    R: not a bugThis is deliberate behavior of Black.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions