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:
jakob.scheid committed 2026-09-22 15:55:57 +02:00
1 parent 274ed45167
commit cc786a6c69
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