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