mirror of
https://github.com/unshackle-dl/unshackle.git
synced 2026-12-05 15:35:06 +00:00
refactor(types): bring mypy to zero errors across unshackle
Fix the bugs the type errors exposed (RnetSession.send body, HLS proxy session, title cache fallback, mux progress) and gate mypy in pre-commit, warn-only in CI.
This commit is contained in:
@@ -110,7 +110,7 @@ class EXAMPLE(Service):
|
||||
def cli(ctx: click.Context, **kwargs: Any) -> EXAMPLE:
|
||||
return EXAMPLE(ctx, **kwargs)
|
||||
|
||||
def __init__(self, ctx: click.Context, title: str, movie: bool, device: str):
|
||||
def __init__(self, ctx: click.Context, title: str, movie: bool, device: str) -> None:
|
||||
# Store CLI args BEFORE super().__init__ if the base needs them; here order
|
||||
# doesn't matter, but storing first is the common convention.
|
||||
self.title = title
|
||||
|
||||
Reference in New Issue
Block a user