generated from jCloud/repository-template
fix(python-generator): make signatures compliant with PEP 8
The '=' character at a parameter in the signature was surrounded with spaces previously. That is no longer the case, unless there is a type hint.
This commit is contained in:
1 file changed
+3
@@ -142,6 +142,9 @@ class PythonFunctionArgument:
|
|||||||
str_repr += ': ' + self.annotation
|
str_repr += ': ' + self.annotation
|
||||||
|
|
||||||
if self.default is not None:
|
if self.default is not None:
|
||||||
|
if self.annotation is None:
|
||||||
|
str_repr += '=' + self.default
|
||||||
|
else:
|
||||||
str_repr += ' = ' + self.default
|
str_repr += ' = ' + self.default
|
||||||
|
|
||||||
return str_repr
|
return str_repr
|
||||||
|
|||||||
Reference in new issue
Block a user