I have this code:
some_list = range(a, b+1)
missing whitespace around operator
some_list = range(a, b + 1)
Always surround these binary operators with a single space on either side: assignment (=), augmented assignment (+=, -= etc.), comparisons (==, <, >, !=, <>, <=, >=, in, not in, is, is not), Booleans (and, or, not).
The exception to that is when
= is used to set named parameters.
I've looked through the source code of Python's standard library and found an occurrence of the scenario presented above:
end = _w(s, end + 1).end()