fix(network.py): resolve E999 SyntaxError by separating the two strings

This commit is contained in:
2026-01-18 18:38:23 +01:00
parent 28d23806e9
commit 68497e0bf2

View File

@@ -82,7 +82,9 @@ class Neuron:
line: str = str.join("", str(self._weight[i: (i + jmp)])) line: str = str.join("", str(self._weight[i: (i + jmp)]))
text.append(line) 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 # # neuron class
# class Neuron: # class Neuron: