aboutsummaryrefslogtreecommitdiff
path: root/gn3
diff options
context:
space:
mode:
authorAlexander Kabui2021-10-20 13:26:02 +0300
committerBonfaceKilz2021-10-25 14:16:21 +0300
commit5440bfcd6940db08c4479a39ba66dbc802b2c426 (patch)
tree8109cf2c76c0002671770170ead2b373ce0858f6 /gn3
parenta016f291176a974e654c9387937057cb8f6aa250 (diff)
downloadgenenetwork3-5440bfcd6940db08c4479a39ba66dbc802b2c426.tar.gz
mypy:Incompatible types in assignment fix
Diffstat (limited to 'gn3')
-rw-r--r--gn3/computations/wgcna.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/gn3/computations/wgcna.py b/gn3/computations/wgcna.py
index 0e49527..ab12fe7 100644
--- a/gn3/computations/wgcna.py
+++ b/gn3/computations/wgcna.py
@@ -37,11 +37,9 @@ def stream_cmd_output(socketio, request_data, cmd: str):
if results.stdout is not None:
for line in iter(results.stdout.readline, b""):
-
- line = line.decode("utf-8").rstrip()
-
socketio.emit("output",
- {"data": line}, namespace="/", room=request_data["socket_id"])
+ {"data": line.decode("utf-8").rstrip()},
+ namespace="/", room=request_data["socket_id"])
socketio.emit(
"output", {"data":