Skip to content

Commit

Permalink
build(autofix): Auto-fix linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
janw-bot committed Jan 5, 2025
1 parent e469cec commit 64fcfda
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion podcast_archiver/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion podcast_archiver/processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion podcast_archiver/utils/pretty_printing.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion podcast_archiver/utils/progress.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 64fcfda

Please sign in to comment.