Skip to content

Files

Latest commit

 

History

History
27 lines (18 loc) · 469 Bytes

File metadata and controls

27 lines (18 loc) · 469 Bytes

Pattern: Unexpected whitespace around =

Issue: -

Description

There should be no spaces before or after the = in a function definition.

Example of incorrect code:

def func(key1 = 'val1',
         key2 = 'val2'):
    return key1, key2

Example of correct code:

def func(key1='val1',
         key2='val2'):
    return key1, key2

Further Reading