From 64fcfda02a65dcb4844d1907a62aaba8dbcc313b Mon Sep 17 00:00:00 2001 From: "Jan Willhaus [bot]" Date: Sun, 5 Jan 2025 14:01:55 +0000 Subject: [PATCH] build(autofix): Auto-fix linting issues --- podcast_archiver/database.py | 2 +- podcast_archiver/processor.py | 2 +- podcast_archiver/utils/pretty_printing.py | 2 +- podcast_archiver/utils/progress.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/podcast_archiver/database.py b/podcast_archiver/database.py index 04c3d3b..93a2987 100644 --- a/podcast_archiver/database.py +++ b/podcast_archiver/database.py @@ -65,7 +65,7 @@ class Database(BaseDatabase): lock: Lock conn: sqlite3.Connection - __slots__ = ("lock", "conn") + __slots__ = ("conn", "lock") def __init__(self, filename: str, ignore_existing: bool) -> None: super().__init__(filename=filename, ignore_existing=ignore_existing) diff --git a/podcast_archiver/processor.py b/podcast_archiver/processor.py index 5a24171..c3bb7c8 100644 --- a/podcast_archiver/processor.py +++ b/podcast_archiver/processor.py @@ -42,7 +42,7 @@ class FeedProcessor: known_feeds: dict[str, FeedInfo] - __slots__ = ("settings", "database", "filename_formatter", "pool_executor", "stop_event", "known_feeds") + __slots__ = ("database", "filename_formatter", "known_feeds", "pool_executor", "settings", "stop_event") def __init__(self, settings: Settings | None = None, database: BaseDatabase | None = None) -> None: self.settings = settings or Settings() diff --git a/podcast_archiver/utils/pretty_printing.py b/podcast_archiver/utils/pretty_printing.py index 062ef66..b69b58f 100644 --- a/podcast_archiver/utils/pretty_printing.py +++ b/podcast_archiver/utils/pretty_printing.py @@ -65,7 +65,7 @@ class PrettyPrintEpisodeRange: _last_populated: _ValPair pairs: list[_ValPair] - __slots__ = ("_present", "_missing", "_last_populated", "pairs") + __slots__ = ("_last_populated", "_missing", "_present", "pairs") def __init__(self) -> None: self._present = _ValPair(prefix=DownloadResult.ALREADY_EXISTS) diff --git a/podcast_archiver/utils/progress.py b/podcast_archiver/utils/progress.py index 323785e..4632dab 100644 --- a/podcast_archiver/utils/progress.py +++ b/podcast_archiver/utils/progress.py @@ -119,7 +119,7 @@ class ProgressManager: _refresher: _ProgressRefreshThread _started: bool - __slots__ = ("_progress", "_lock", "_refresher", "_started") + __slots__ = ("_lock", "_progress", "_refresher", "_started") def __init__(self) -> None: self._started = False