More uneeded exclusions

This commit is contained in:
Kovid Goyal 2025-01-27 10:29:00 +05:30
parent ddd580c85c
commit 39f7f616bc
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
3 changed files with 3 additions and 5 deletions

View File

@ -56,8 +56,6 @@ unfixable = ['PIE794', 'ISC001']
"src/calibre/ebooks/metadata/sources/base.py" = ['RET501']
"src/calibre/ebooks/pdf/reflow.py" = ['E114']
"src/calibre/gui2/store/stores/*" = ['UP']
"src/calibre/gui2/tts/manager.py" = ['UP037']
"src/calibre/utils/copy_files.py" = ['UP037']
"src/qt/*.py" = ['I', 'E302']
"src/qt/*.pyi" = ['I']

View File

@ -125,7 +125,7 @@ class TTSManager(QObject):
def __init__(self, parent=None):
super().__init__(parent)
self._tts: 'TTSBackend' | None = None
self._tts: 'TTSBackend' | None = None # noqa: UP037
self.state = QTextToSpeech.State.Ready
self.speaking_simple_text = False
self.tracker = Tracker()

View File

@ -83,8 +83,8 @@ class WindowsFileCopier:
self.allow_move = allow_move
self.path_to_fileid_map: dict[str, WindowsFileId] = {}
self.fileid_to_paths_map: dict[WindowsFileId, set[str]] = defaultdict(set)
self.path_to_handle_map: dict[str, 'winutil.Handle'] = {}
self.folder_to_handle_map: dict[str, 'winutil.Handle'] = {}
self.path_to_handle_map: dict[str, winutil.Handle] = {}
self.folder_to_handle_map: dict[str, winutil.Handle] = {}
self.folders: list[str] = []
self.copy_map: dict[str, str] = {}