Properly call super() in subclasses (#14124)

This commit is contained in:
gtsiam
2024-10-03 04:35:46 +03:00
committed by GitHub
parent 3c015bf822
commit 54900ae318
18 changed files with 19 additions and 38 deletions

View File

@@ -70,8 +70,7 @@ os.register_at_fork(after_in_child=reopen_std_streams)
class LogPipe(threading.Thread):
def __init__(self, log_name: str):
"""Setup the object with a logger and start the thread"""
threading.Thread.__init__(self)
self.daemon = False
super().__init__(daemon=False)
self.logger = logging.getLogger(log_name)
self.level = logging.ERROR
self.deque: Deque[str] = deque(maxlen=100)