From f28a6dc28a9858e061c2916f48dbcd239ba93544 Mon Sep 17 00:00:00 2001 From: rlaphoenix Date: Tue, 9 Jan 2024 02:31:02 +0000 Subject: [PATCH] Fix usage of `__all__` --- devine/core/commands.py | 2 +- devine/core/config.py | 2 +- devine/core/console.py | 2 +- devine/core/downloaders/__init__.py | 2 +- devine/core/downloaders/aria2c.py | 2 +- devine/core/downloaders/requests.py | 2 +- devine/core/drm/__init__.py | 2 +- devine/core/drm/clearkey.py | 2 +- devine/core/drm/widevine.py | 2 +- devine/core/manifests/__init__.py | 2 +- devine/core/manifests/dash.py | 2 +- devine/core/manifests/hls.py | 2 +- devine/core/proxies/__init__.py | 2 +- devine/core/service.py | 2 +- devine/core/services.py | 2 +- devine/core/titles/__init__.py | 2 +- devine/core/titles/episode.py | 2 +- devine/core/titles/movie.py | 2 +- devine/core/titles/song.py | 2 +- devine/core/titles/title.py | 2 +- devine/core/tracks/__init__.py | 2 +- devine/core/tracks/audio.py | 2 +- devine/core/tracks/chapter.py | 2 +- devine/core/tracks/subtitle.py | 2 +- devine/core/tracks/track.py | 2 +- devine/core/tracks/tracks.py | 2 +- devine/core/tracks/video.py | 2 +- devine/core/vault.py | 2 +- devine/core/vaults.py | 2 +- 29 files changed, 29 insertions(+), 29 deletions(-) diff --git a/devine/core/commands.py b/devine/core/commands.py index e7e561e..6efc3ef 100644 --- a/devine/core/commands.py +++ b/devine/core/commands.py @@ -40,4 +40,4 @@ class Commands(click.MultiCommand): # Hide direct access to commands from quick import form, they shouldn't be accessed directly -__ALL__ = (Commands,) +__all__ = ("Commands",) diff --git a/devine/core/config.py b/devine/core/config.py index bec0a8d..ca146b8 100644 --- a/devine/core/config.py +++ b/devine/core/config.py @@ -82,4 +82,4 @@ if not config_path.is_file(): config_path.write_text("") config = Config.from_yaml(config_path) -__ALL__ = (config,) +__all__ = ("config",) diff --git a/devine/core/console.py b/devine/core/console.py index 27fa1f8..e73872c 100644 --- a/devine/core/console.py +++ b/devine/core/console.py @@ -362,4 +362,4 @@ console = ComfyConsole( ) -__ALL__ = (ComfyLogRenderer, ComfyRichHandler, ComfyConsole, console) +__all__ = ("ComfyLogRenderer", "ComfyRichHandler", "ComfyConsole", "console") diff --git a/devine/core/downloaders/__init__.py b/devine/core/downloaders/__init__.py index 1d6368c..332c06f 100644 --- a/devine/core/downloaders/__init__.py +++ b/devine/core/downloaders/__init__.py @@ -10,4 +10,4 @@ downloader = { }[config.downloader] -__ALL__ = (downloader, aria2c, requests) +__all__ = ("downloader", "aria2c", "requests") diff --git a/devine/core/downloaders/aria2c.py b/devine/core/downloaders/aria2c.py index a101372..77b5af7 100644 --- a/devine/core/downloaders/aria2c.py +++ b/devine/core/downloaders/aria2c.py @@ -182,4 +182,4 @@ async def aria2c( return p.returncode -__ALL__ = (aria2c,) +__all__ = ("aria2c",) diff --git a/devine/core/downloaders/requests.py b/devine/core/downloaders/requests.py index c5c4761..53c5606 100644 --- a/devine/core/downloaders/requests.py +++ b/devine/core/downloaders/requests.py @@ -83,4 +83,4 @@ def requests( return 0 -__ALL__ = (requests,) +__all__ = ("requests",) diff --git a/devine/core/drm/__init__.py b/devine/core/drm/__init__.py index 92b643f..01222ee 100644 --- a/devine/core/drm/__init__.py +++ b/devine/core/drm/__init__.py @@ -6,4 +6,4 @@ from devine.core.drm.widevine import Widevine DRM_T = Union[ClearKey, Widevine] -__ALL__ = (ClearKey, Widevine, DRM_T) +__all__ = ("ClearKey", "Widevine", "DRM_T") diff --git a/devine/core/drm/clearkey.py b/devine/core/drm/clearkey.py index ec36fc2..a4cd269 100644 --- a/devine/core/drm/clearkey.py +++ b/devine/core/drm/clearkey.py @@ -96,4 +96,4 @@ class ClearKey: return cls(key=key, iv=iv) -__ALL__ = (ClearKey,) +__all__ = ("ClearKey",) diff --git a/devine/core/drm/widevine.py b/devine/core/drm/widevine.py index 42160ed..dff1139 100644 --- a/devine/core/drm/widevine.py +++ b/devine/core/drm/widevine.py @@ -314,4 +314,4 @@ class Widevine: """License returned no Content Encryption Keys.""" -__ALL__ = (Widevine,) +__all__ = ("Widevine",) diff --git a/devine/core/manifests/__init__.py b/devine/core/manifests/__init__.py index dafc6b1..a7c1373 100644 --- a/devine/core/manifests/__init__.py +++ b/devine/core/manifests/__init__.py @@ -1,4 +1,4 @@ from .dash import DASH from .hls import HLS -__ALL__ = (DASH, HLS) +__all__ = ("DASH", "HLS") diff --git a/devine/core/manifests/dash.py b/devine/core/manifests/dash.py index dd290c9..81d3fe8 100644 --- a/devine/core/manifests/dash.py +++ b/devine/core/manifests/dash.py @@ -783,4 +783,4 @@ class DASH: return url -__ALL__ = (DASH,) +__all__ = ("DASH",) diff --git a/devine/core/manifests/hls.py b/devine/core/manifests/hls.py index be5f3bb..fce8d26 100644 --- a/devine/core/manifests/hls.py +++ b/devine/core/manifests/hls.py @@ -549,4 +549,4 @@ class HLS: return f"{offset}-{offset + length - 1}" -__ALL__ = (HLS,) +__all__ = ("HLS",) diff --git a/devine/core/proxies/__init__.py b/devine/core/proxies/__init__.py index 80a61a1..5768266 100644 --- a/devine/core/proxies/__init__.py +++ b/devine/core/proxies/__init__.py @@ -2,4 +2,4 @@ from .basic import Basic from .hola import Hola from .nordvpn import NordVPN -__ALL__ = (Basic, Hola, NordVPN) +__all__ = ("Basic", "Hola", "NordVPN") diff --git a/devine/core/service.py b/devine/core/service.py index 0f34e5e..81076af 100644 --- a/devine/core/service.py +++ b/devine/core/service.py @@ -227,4 +227,4 @@ class Service(metaclass=ABCMeta): """ -__ALL__ = (Service,) +__all__ = ("Service",) diff --git a/devine/core/services.py b/devine/core/services.py index 10acb6d..3f590da 100644 --- a/devine/core/services.py +++ b/devine/core/services.py @@ -92,4 +92,4 @@ class Services(click.MultiCommand): return module -__ALL__ = (Services,) +__all__ = ("Services",) diff --git a/devine/core/titles/__init__.py b/devine/core/titles/__init__.py index 865e2f3..304a8f1 100644 --- a/devine/core/titles/__init__.py +++ b/devine/core/titles/__init__.py @@ -8,4 +8,4 @@ Title_T = Union[Movie, Episode, Song] Titles_T = Union[Movies, Series, Album] -__ALL__ = (Episode, Series, Movie, Movies, Album, Song, Title_T, Titles_T) +__all__ = ("Episode", "Series", "Movie", "Movies", "Album", "Song", "Title_T", "Titles_T") diff --git a/devine/core/titles/episode.py b/devine/core/titles/episode.py index 0f9571b..947fb7a 100644 --- a/devine/core/titles/episode.py +++ b/devine/core/titles/episode.py @@ -207,4 +207,4 @@ class Series(SortedKeyList, ABC): return tree -__ALL__ = (Episode, Series) +__all__ = ("Episode", "Series") diff --git a/devine/core/titles/movie.py b/devine/core/titles/movie.py index 633ec52..5ed4af0 100644 --- a/devine/core/titles/movie.py +++ b/devine/core/titles/movie.py @@ -153,4 +153,4 @@ class Movies(SortedKeyList, ABC): return tree -__ALL__ = (Movie, Movies) +__all__ = ("Movie", "Movies") diff --git a/devine/core/titles/song.py b/devine/core/titles/song.py index 70e27d0..7a6ac3e 100644 --- a/devine/core/titles/song.py +++ b/devine/core/titles/song.py @@ -148,4 +148,4 @@ class Album(SortedKeyList, ABC): return tree -__ALL__ = (Song, Album) +__all__ = ("Song", "Album") diff --git a/devine/core/titles/title.py b/devine/core/titles/title.py index f9b4bc2..0d69e3d 100644 --- a/devine/core/titles/title.py +++ b/devine/core/titles/title.py @@ -69,4 +69,4 @@ class Title: """ -__ALL__ = (Title,) +__all__ = ("Title",) diff --git a/devine/core/tracks/__init__.py b/devine/core/tracks/__init__.py index 821e8d8..071a99c 100644 --- a/devine/core/tracks/__init__.py +++ b/devine/core/tracks/__init__.py @@ -5,4 +5,4 @@ from .track import Track from .tracks import Tracks from .video import Video -__ALL__ = (Audio, Chapter, Subtitle, Track, Tracks, Video) +__all__ = ("Audio", "Chapter", "Subtitle", "Track", "Tracks", "Video") diff --git a/devine/core/tracks/audio.py b/devine/core/tracks/audio.py index be13d1b..b08396f 100644 --- a/devine/core/tracks/audio.py +++ b/devine/core/tracks/audio.py @@ -121,4 +121,4 @@ class Audio(Track): ])) -__ALL__ = (Audio,) +__all__ = ("Audio",) diff --git a/devine/core/tracks/chapter.py b/devine/core/tracks/chapter.py index 1f33ab1..cb929e5 100644 --- a/devine/core/tracks/chapter.py +++ b/devine/core/tracks/chapter.py @@ -92,4 +92,4 @@ class Chapter: return path.write_text(self.dumps(), encoding="utf8") -__ALL__ = (Chapter,) +__all__ = ("Chapter",) diff --git a/devine/core/tracks/subtitle.py b/devine/core/tracks/subtitle.py index 8cbc73e..2ef7f62 100644 --- a/devine/core/tracks/subtitle.py +++ b/devine/core/tracks/subtitle.py @@ -448,4 +448,4 @@ class Subtitle(Track): ])) -__ALL__ = (Subtitle,) +__all__ = ("Subtitle",) diff --git a/devine/core/tracks/track.py b/devine/core/tracks/track.py index 46a9e60..73e8215 100644 --- a/devine/core/tracks/track.py +++ b/devine/core/tracks/track.py @@ -288,4 +288,4 @@ class Track: return self.move(target) -__ALL__ = (Track,) +__all__ = ("Track",) diff --git a/devine/core/tracks/tracks.py b/devine/core/tracks/tracks.py index 948d499..cc53a40 100644 --- a/devine/core/tracks/tracks.py +++ b/devine/core/tracks/tracks.py @@ -410,4 +410,4 @@ class Tracks: track.delete() -__ALL__ = (Tracks,) +__all__ = ("Tracks",) diff --git a/devine/core/tracks/video.py b/devine/core/tracks/video.py index c2e8ce4..8dcdefb 100644 --- a/devine/core/tracks/video.py +++ b/devine/core/tracks/video.py @@ -337,4 +337,4 @@ class Video(Track): return True -__ALL__ = (Video,) +__all__ = ("Video",) diff --git a/devine/core/vault.py b/devine/core/vault.py index 57c92c9..8fb1d04 100644 --- a/devine/core/vault.py +++ b/devine/core/vault.py @@ -45,4 +45,4 @@ class Vault(metaclass=ABCMeta): """Get a list of Service Tags from Vault.""" -__ALL__ = (Vault,) +__all__ = ("Vault",) diff --git a/devine/core/vaults.py b/devine/core/vaults.py index c040195..d7bb162 100644 --- a/devine/core/vaults.py +++ b/devine/core/vaults.py @@ -74,4 +74,4 @@ class Vaults: return success -__ALL__ = (Vaults,) +__all__ = ("Vaults",)