We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a0f5f06 commit 9046fffCopy full SHA for 9046fff
uncoder-core/app/translator/core/render.py
@@ -210,9 +210,9 @@ def __init__(self):
210
LogicalOperatorType.NOT: f" {self.not_token} ",
211
}
212
213
- def generate_prefix(self, log_source_signature: LogSourceSignature, functions_prefix: str = "") -> str: # noqa: ARG002
214
- if str(log_source_signature):
215
- return f"{log_source_signature!s} {self.and_token}"
+ def generate_prefix(self, log_source_signature: Optional[LogSourceSignature], functions_prefix: str = "") -> str: # noqa: ARG002
+ if log_source_signature:
+ return f"{log_source_signature} {self.and_token}"
216
return ""
217
218
def generate_functions(self, functions: list[Function], source_mapping: SourceMapping) -> RenderedFunctions:
0 commit comments