The following function is throwing an error no matter which way I write it.
@staticmethod
def _generate_clone_spec(param1=None,
param2=None,
param3=None,
param4=False,
param5=False):
According to PEP8 the code above is an acceptable way to align parameters in a function.
But the code show above throws the following error:
Indentation contains mixed spaces and tabs
If I convert all the spaces to tabs, then it looks like this:
@staticmethod
def _generate_clone_spec(param1=None,
param2=None,
param3=None,
param4=False,
param5=False):
In the code above, the mixed spaces and tabs error disappears, but then I violate a new error: Continuation line over-indented for visual indent (E127)
From what I can tell if i write the function in the following way, it conforms to both rules, but is there another way?
@staticmethod
def _generate_clone_spec(
param1=None,
param2=None,
param3=None,
param4=False,
param5=False):