forked from DRMTalks/devine
Fix usage of `__all__`
This commit is contained in:
parent
2291f90f64
commit
f28a6dc28a
|
@ -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",)
|
||||
|
|
|
@ -82,4 +82,4 @@ if not config_path.is_file():
|
|||
config_path.write_text("")
|
||||
config = Config.from_yaml(config_path)
|
||||
|
||||
__ALL__ = (config,)
|
||||
__all__ = ("config",)
|
||||
|
|
|
@ -362,4 +362,4 @@ console = ComfyConsole(
|
|||
)
|
||||
|
||||
|
||||
__ALL__ = (ComfyLogRenderer, ComfyRichHandler, ComfyConsole, console)
|
||||
__all__ = ("ComfyLogRenderer", "ComfyRichHandler", "ComfyConsole", "console")
|
||||
|
|
|
@ -10,4 +10,4 @@ downloader = {
|
|||
}[config.downloader]
|
||||
|
||||
|
||||
__ALL__ = (downloader, aria2c, requests)
|
||||
__all__ = ("downloader", "aria2c", "requests")
|
||||
|
|
|
@ -182,4 +182,4 @@ async def aria2c(
|
|||
return p.returncode
|
||||
|
||||
|
||||
__ALL__ = (aria2c,)
|
||||
__all__ = ("aria2c",)
|
||||
|
|
|
@ -83,4 +83,4 @@ def requests(
|
|||
return 0
|
||||
|
||||
|
||||
__ALL__ = (requests,)
|
||||
__all__ = ("requests",)
|
||||
|
|
|
@ -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")
|
||||
|
|
|
@ -96,4 +96,4 @@ class ClearKey:
|
|||
return cls(key=key, iv=iv)
|
||||
|
||||
|
||||
__ALL__ = (ClearKey,)
|
||||
__all__ = ("ClearKey",)
|
||||
|
|
|
@ -314,4 +314,4 @@ class Widevine:
|
|||
"""License returned no Content Encryption Keys."""
|
||||
|
||||
|
||||
__ALL__ = (Widevine,)
|
||||
__all__ = ("Widevine",)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
from .dash import DASH
|
||||
from .hls import HLS
|
||||
|
||||
__ALL__ = (DASH, HLS)
|
||||
__all__ = ("DASH", "HLS")
|
||||
|
|
|
@ -783,4 +783,4 @@ class DASH:
|
|||
return url
|
||||
|
||||
|
||||
__ALL__ = (DASH,)
|
||||
__all__ = ("DASH",)
|
||||
|
|
|
@ -549,4 +549,4 @@ class HLS:
|
|||
return f"{offset}-{offset + length - 1}"
|
||||
|
||||
|
||||
__ALL__ = (HLS,)
|
||||
__all__ = ("HLS",)
|
||||
|
|
|
@ -2,4 +2,4 @@ from .basic import Basic
|
|||
from .hola import Hola
|
||||
from .nordvpn import NordVPN
|
||||
|
||||
__ALL__ = (Basic, Hola, NordVPN)
|
||||
__all__ = ("Basic", "Hola", "NordVPN")
|
||||
|
|
|
@ -227,4 +227,4 @@ class Service(metaclass=ABCMeta):
|
|||
"""
|
||||
|
||||
|
||||
__ALL__ = (Service,)
|
||||
__all__ = ("Service",)
|
||||
|
|
|
@ -92,4 +92,4 @@ class Services(click.MultiCommand):
|
|||
return module
|
||||
|
||||
|
||||
__ALL__ = (Services,)
|
||||
__all__ = ("Services",)
|
||||
|
|
|
@ -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")
|
||||
|
|
|
@ -207,4 +207,4 @@ class Series(SortedKeyList, ABC):
|
|||
return tree
|
||||
|
||||
|
||||
__ALL__ = (Episode, Series)
|
||||
__all__ = ("Episode", "Series")
|
||||
|
|
|
@ -153,4 +153,4 @@ class Movies(SortedKeyList, ABC):
|
|||
return tree
|
||||
|
||||
|
||||
__ALL__ = (Movie, Movies)
|
||||
__all__ = ("Movie", "Movies")
|
||||
|
|
|
@ -148,4 +148,4 @@ class Album(SortedKeyList, ABC):
|
|||
return tree
|
||||
|
||||
|
||||
__ALL__ = (Song, Album)
|
||||
__all__ = ("Song", "Album")
|
||||
|
|
|
@ -69,4 +69,4 @@ class Title:
|
|||
"""
|
||||
|
||||
|
||||
__ALL__ = (Title,)
|
||||
__all__ = ("Title",)
|
||||
|
|
|
@ -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")
|
||||
|
|
|
@ -121,4 +121,4 @@ class Audio(Track):
|
|||
]))
|
||||
|
||||
|
||||
__ALL__ = (Audio,)
|
||||
__all__ = ("Audio",)
|
||||
|
|
|
@ -92,4 +92,4 @@ class Chapter:
|
|||
return path.write_text(self.dumps(), encoding="utf8")
|
||||
|
||||
|
||||
__ALL__ = (Chapter,)
|
||||
__all__ = ("Chapter",)
|
||||
|
|
|
@ -448,4 +448,4 @@ class Subtitle(Track):
|
|||
]))
|
||||
|
||||
|
||||
__ALL__ = (Subtitle,)
|
||||
__all__ = ("Subtitle",)
|
||||
|
|
|
@ -288,4 +288,4 @@ class Track:
|
|||
return self.move(target)
|
||||
|
||||
|
||||
__ALL__ = (Track,)
|
||||
__all__ = ("Track",)
|
||||
|
|
|
@ -410,4 +410,4 @@ class Tracks:
|
|||
track.delete()
|
||||
|
||||
|
||||
__ALL__ = (Tracks,)
|
||||
__all__ = ("Tracks",)
|
||||
|
|
|
@ -337,4 +337,4 @@ class Video(Track):
|
|||
return True
|
||||
|
||||
|
||||
__ALL__ = (Video,)
|
||||
__all__ = ("Video",)
|
||||
|
|
|
@ -45,4 +45,4 @@ class Vault(metaclass=ABCMeta):
|
|||
"""Get a list of Service Tags from Vault."""
|
||||
|
||||
|
||||
__ALL__ = (Vault,)
|
||||
__all__ = ("Vault",)
|
||||
|
|
|
@ -74,4 +74,4 @@ class Vaults:
|
|||
return success
|
||||
|
||||
|
||||
__ALL__ = (Vaults,)
|
||||
__all__ = ("Vaults",)
|
||||
|
|
Loading…
Reference in New Issue