From ed997debe5bdeabd528dbe84b5659fed2971d8ae Mon Sep 17 00:00:00 2001 From: imagine-hussain Date: Mon, 3 Jul 2023 16:51:02 +1000 Subject: [PATCH] hotfix: fix the type err in the run script --- run_app.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/run_app.py b/run_app.py index c2fda6436..0ecca7b7a 100644 --- a/run_app.py +++ b/run_app.py @@ -5,11 +5,12 @@ import sys import threading from subprocess import Popen, check_call +from typing import TextIO from dotenv import load_dotenv -class LogPipe(threading.Thread): +class LogPipe(threading.Thread, TextIO): """ boilerplate abstraction for redirecting the logs of a process """ def __init__(self, level): """Setup the object with a logger and a loglevel @@ -73,8 +74,8 @@ def main(): ] ) # this is actually kooky if you think about it - sys.stdout = LogPipe(logging.INFO) # type: ignore - sys.stderr = LogPipe(logging.ERROR) # type: ignore + sys.stdout = LogPipe(logging.INFO) + sys.stderr = LogPipe(logging.ERROR) username, password, python_ver = get_backend_env() base_url = get_frontend_env() os.system('docker compose run --rm init-mongo')