From 205667faa15d6f351d411d063c0a8bdeedb3ba6f Mon Sep 17 00:00:00 2001 From: Keith Edmunds Date: Sun, 22 Dec 2024 15:11:30 +0000 Subject: [PATCH] Tighten up AudacityController type hints --- app/audacity_controller.py | 3 ++- web.py | 16 ---------------- 2 files changed, 2 insertions(+), 17 deletions(-) delete mode 100755 web.py diff --git a/app/audacity_controller.py b/app/audacity_controller.py index 475d1dc..3b2b327 100644 --- a/app/audacity_controller.py +++ b/app/audacity_controller.py @@ -3,6 +3,7 @@ import os import psutil import socket import select +from typing import Optional # PyQt imports @@ -31,7 +32,7 @@ class AudacityController: """ self.method = method - self.path: str = "" + self.path: Optional[str] = None self.timeout = timeout if method == "pipe": user_uid = os.getuid() # Get the user's UID diff --git a/web.py b/web.py deleted file mode 100755 index ec0e365..0000000 --- a/web.py +++ /dev/null @@ -1,16 +0,0 @@ -#!/usr/bin/env python3 -import sys -from PyQt6.QtWidgets import QApplication, QLabel -from PyQt6.QtGui import QColor, QPalette - -app = QApplication(sys.argv) -pal = app.palette() -pal.setColor(QPalette.ColorRole.WindowText, QColor("#000000")) -app.setPalette(pal) - -label = QLabel("my label") -label.resize(300, 200) - -label.show() - -sys.exit(app.exec())