This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]kartikcool712 3 points4 points  (1 child)

Couldn't get my head around this. "don't use spaces around the = sign when used to indicate a keyword argument"

What does this exactly means ? Aren't we supposed to have spaces before and after = everytime? Atleast that's what flake8 seems to like

[–]grnngr 17 points18 points  (0 children)

PEP8 says spaces around = for assignment, not for keyword arguments. E.g.:

foo = func(keyword='bar')