Skip to content

False E121 with implicit string concatenation within parenthesis #203

@sn6uv

Description

@sn6uv

Best demonstrated with some examples:

Example 1 (raises E121):

{
    ('abc'
     'def'): (
        'abc'),
}

Example 2 (raises E121):

('abc'
 'def') = (
    'abc')

I've done some other tests and it seems to only happen for hanging and not visual indent [Example 3] and with surrounding parenthesis present [Example 4].

Example 3: (Okay):

('abc'
 'def') = ('abc'
           'def')

Example 4: (Okay):

{
    'abc'
    'def': (
        'abc'),
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions