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
+4
-1
@@ -142,7 +142,10 @@ class PythonFunctionArgument:
|
||||
str_repr += ': ' + self.annotation
|
||||
|
||||
if self.default is not None:
|
||||
str_repr += ' = ' + self.default
|
||||
if self.annotation is None:
|
||||
str_repr += '=' + self.default
|
||||
else:
|
||||
str_repr += ' = ' + self.default
|
||||
|
||||
return str_repr
|
||||
|
||||
|
||||
Reference in new issue
Block a user