Fix usage of `__all__`

This commit is contained in:
rlaphoenix 2024-01-09 02:31:02 +00:00
parent 2291f90f64
commit f28a6dc28a
29 changed files with 29 additions and 29 deletions

View File

@ -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",)

View File

@ -82,4 +82,4 @@ if not config_path.is_file():
config_path.write_text("")
config = Config.from_yaml(config_path)
__ALL__ = (config,)
__all__ = ("config",)

View File

@ -362,4 +362,4 @@ console = ComfyConsole(
)
__ALL__ = (ComfyLogRenderer, ComfyRichHandler, ComfyConsole, console)
__all__ = ("ComfyLogRenderer", "ComfyRichHandler", "ComfyConsole", "console")

View File

@ -10,4 +10,4 @@ downloader = {
}[config.downloader]
__ALL__ = (downloader, aria2c, requests)
__all__ = ("downloader", "aria2c", "requests")

View File

@ -182,4 +182,4 @@ async def aria2c(
return p.returncode
__ALL__ = (aria2c,)
__all__ = ("aria2c",)

View File

@ -83,4 +83,4 @@ def requests(
return 0
__ALL__ = (requests,)
__all__ = ("requests",)

View File

@ -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")

View File

@ -96,4 +96,4 @@ class ClearKey:
return cls(key=key, iv=iv)
__ALL__ = (ClearKey,)
__all__ = ("ClearKey",)

View File

@ -314,4 +314,4 @@ class Widevine:
"""License returned no Content Encryption Keys."""
__ALL__ = (Widevine,)
__all__ = ("Widevine",)

View File

@ -1,4 +1,4 @@
from .dash import DASH
from .hls import HLS
__ALL__ = (DASH, HLS)
__all__ = ("DASH", "HLS")

View File

@ -783,4 +783,4 @@ class DASH:
return url
__ALL__ = (DASH,)
__all__ = ("DASH",)

View File

@ -549,4 +549,4 @@ class HLS:
return f"{offset}-{offset + length - 1}"
__ALL__ = (HLS,)
__all__ = ("HLS",)

View File

@ -2,4 +2,4 @@ from .basic import Basic
from .hola import Hola
from .nordvpn import NordVPN
__ALL__ = (Basic, Hola, NordVPN)
__all__ = ("Basic", "Hola", "NordVPN")

View File

@ -227,4 +227,4 @@ class Service(metaclass=ABCMeta):
"""
__ALL__ = (Service,)
__all__ = ("Service",)

View File

@ -92,4 +92,4 @@ class Services(click.MultiCommand):
return module
__ALL__ = (Services,)
__all__ = ("Services",)

View File

@ -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")

View File

@ -207,4 +207,4 @@ class Series(SortedKeyList, ABC):
return tree
__ALL__ = (Episode, Series)
__all__ = ("Episode", "Series")

View File

@ -153,4 +153,4 @@ class Movies(SortedKeyList, ABC):
return tree
__ALL__ = (Movie, Movies)
__all__ = ("Movie", "Movies")

View File

@ -148,4 +148,4 @@ class Album(SortedKeyList, ABC):
return tree
__ALL__ = (Song, Album)
__all__ = ("Song", "Album")

View File

@ -69,4 +69,4 @@ class Title:
"""
__ALL__ = (Title,)
__all__ = ("Title",)

View File

@ -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")

View File

@ -121,4 +121,4 @@ class Audio(Track):
]))
__ALL__ = (Audio,)
__all__ = ("Audio",)

View File

@ -92,4 +92,4 @@ class Chapter:
return path.write_text(self.dumps(), encoding="utf8")
__ALL__ = (Chapter,)
__all__ = ("Chapter",)

View File

@ -448,4 +448,4 @@ class Subtitle(Track):
]))
__ALL__ = (Subtitle,)
__all__ = ("Subtitle",)

View File

@ -288,4 +288,4 @@ class Track:
return self.move(target)
__ALL__ = (Track,)
__all__ = ("Track",)

View File

@ -410,4 +410,4 @@ class Tracks:
track.delete()
__ALL__ = (Tracks,)
__all__ = ("Tracks",)

View File

@ -337,4 +337,4 @@ class Video(Track):
return True
__ALL__ = (Video,)
__all__ = ("Video",)

View File

@ -45,4 +45,4 @@ class Vault(metaclass=ABCMeta):
"""Get a list of Service Tags from Vault."""
__ALL__ = (Vault,)
__all__ = ("Vault",)

View File

@ -74,4 +74,4 @@ class Vaults:
return success
__ALL__ = (Vaults,)
__all__ = ("Vaults",)