Skip to content

Commit 51a46fd

Browse files
committed
fix(lint): Remove unused imports to fix pyflakes errors
Fixed pyflakes warnings: 1. core/overlay.py: - Removed unused 'sys' import 2. core/settings_manager.py: - Removed unused 'typing.Optional' import 3. core/configuration.py: - Removed unused 'typing.Optional' import 4. core/ui/components.py: - Removed unused 'PySide6.QtCore.Qt' import - Removed unused 'PySide6.QtGui.QColor' import - Removed unused '..configuration.AppConfig' import These were warnings (not actual errors), but pyflakes considers them failures. All files now pass pyflakes linting without warnings.
1 parent f111f96 commit 51a46fd

File tree

4 files changed

+2
-6
lines changed

4 files changed

+2
-6
lines changed

core/configuration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from dataclasses import dataclass, field
2-
from typing import Dict, List, Optional
2+
from typing import Dict, List
33
from PySide6.QtGui import QColor
44
from PySide6.QtWidgets import QApplication
55
from .logging_config import get_logger

core/overlay.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import sys
21
import time
32
from collections import deque
43
from typing import Dict, Set, Optional

core/settings_manager.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import configparser
22
import os
33
import shutil
4-
from typing import Optional
54
from PySide6.QtCore import QObject, Signal
65
from .configuration import AppConfig
76
from .logging_config import get_logger

core/ui/components.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@
33
QWidget, QVBoxLayout, QHBoxLayout, QLabel, QSpinBox,
44
QComboBox, QGroupBox, QPushButton, QCheckBox, QColorDialog
55
)
6-
from PySide6.QtCore import Qt, Signal
7-
from PySide6.QtGui import QColor
8-
from ..configuration import AppConfig
6+
from PySide6.QtCore import Signal
97
from ..settings_manager import SettingsManager
108
from ..qt_utils import signals_blocked
119

0 commit comments

Comments
 (0)