mirror of
https://github.com/sotam0316/docker-py-revanced.git
synced 2026-04-25 03:48:37 +09:00
🚨 Added object inheritance [skip ci]
This commit is contained in:
+1
-1
@@ -13,7 +13,7 @@ from src.exceptions import DownloadError, PatchingFailedError, UnknownError
|
||||
from src.utils import slugify
|
||||
|
||||
|
||||
class APP:
|
||||
class APP(object):
|
||||
"""Patched APK."""
|
||||
|
||||
def __init__(self: Self, app_name: str, config: RevancedConfig) -> None:
|
||||
|
||||
+1
-1
@@ -11,7 +11,7 @@ default_patches_json = default_patches
|
||||
default_integrations = "https://github.com/revanced/revanced-integrations/releases/latest"
|
||||
|
||||
|
||||
class RevancedConfig:
|
||||
class RevancedConfig(object):
|
||||
"""Revanced Configurations."""
|
||||
|
||||
def __init__(self: Self, env: Env) -> None:
|
||||
|
||||
@@ -16,7 +16,7 @@ from src.exceptions import DownloadError
|
||||
from src.utils import handle_request_response
|
||||
|
||||
|
||||
class Downloader:
|
||||
class Downloader(object):
|
||||
"""Files downloader."""
|
||||
|
||||
def __init__(self: Self, config: RevancedConfig) -> None:
|
||||
|
||||
@@ -10,7 +10,7 @@ from src.downloader.uptodown import UptoDown
|
||||
from src.exceptions import DownloadError
|
||||
|
||||
|
||||
class DownloaderFactory:
|
||||
class DownloaderFactory(object):
|
||||
"""Downloader Factory."""
|
||||
|
||||
@staticmethod
|
||||
|
||||
+1
-1
@@ -12,7 +12,7 @@ from src.patches import Patches
|
||||
from src.utils import possible_archs
|
||||
|
||||
|
||||
class Parser:
|
||||
class Parser(object):
|
||||
"""Revanced Parser."""
|
||||
|
||||
CLI_JAR = "-jar"
|
||||
|
||||
+2
-2
@@ -12,7 +12,7 @@ from src.config import RevancedConfig
|
||||
from src.exceptions import AppNotFoundError, PatchesJsonLoadError
|
||||
|
||||
|
||||
class Patches:
|
||||
class Patches(object):
|
||||
"""Revanced Patches."""
|
||||
|
||||
revanced_package_names: ClassVar[Dict[str, str]] = {
|
||||
@@ -197,7 +197,7 @@ class Patches:
|
||||
return total_patches
|
||||
|
||||
|
||||
class PatchLoader:
|
||||
class PatchLoader(object):
|
||||
"""Patch Loader."""
|
||||
|
||||
@staticmethod
|
||||
|
||||
Reference in New Issue
Block a user