Tighten up AudacityController type hints

This commit is contained in:
Keith Edmunds 2024-12-22 15:11:30 +00:00
parent d9abf72f6a
commit 205667faa1
2 changed files with 2 additions and 17 deletions

View File

@ -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

16
web.py
View File

@ -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())