generated from jCloud/repository-template
Fix(python-generator): make generated signatures compliant with PEP 8 #35
@@ -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