From cc786a6c69a305817e9a0ad5e18530d7b63c4af2 Mon Sep 17 00:00:00 2001 From: Jakob Scheid Date: Tue, 22 Sep 2026 15:55:57 +0200 Subject: [PATCH] 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. --- src/jcloud_docsgen/core/python/arguments.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/jcloud_docsgen/core/python/arguments.py b/src/jcloud_docsgen/core/python/arguments.py index d993675..3ff6448 100644 --- a/src/jcloud_docsgen/core/python/arguments.py +++ b/src/jcloud_docsgen/core/python/arguments.py @@ -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