From 68497e0bf26d14d03506972d2704bc2a76c67aa7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20GUEZO?= Date: Sun, 18 Jan 2026 18:38:23 +0100 Subject: [PATCH] fix(network.py): resolve E999 SyntaxError by separating the two strings --- network.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/network.py b/network.py index 4b96802..47eb6db 100644 --- a/network.py +++ b/network.py @@ -77,12 +77,14 @@ class Neuron: def __repr__(self) -> str: jmp: int = int(math.sqrt(self._input_size)) text: list[str] = [] - + for i in range(0, self._input_size, jmp): line: str = str.join("", str(self._weight[i: (i + jmp)])) text.append(line) - return f"weight:\n{str.join("\n", text)}\nbias: {self._bias}" + return "weight:\n" + str.join("\n", text) + f"\nbias: {self._bias}" + +Neuron(10) # # neuron class # class Neuron: