mirror of
https://github.com/unshackle-dl/unshackle.git
synced 2026-11-29 12:35:13 +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:
@@ -17,7 +17,7 @@ class BlowfishStripe:
|
||||
CHUNK = 2048
|
||||
IV = bytes(range(8))
|
||||
|
||||
def __init__(self, key: Union[bytes, str]):
|
||||
def __init__(self, key: Union[bytes, str]) -> None:
|
||||
self.key: bytes = bytes.fromhex(key) if isinstance(key, str) else key
|
||||
|
||||
def decrypt_chunk(self, chunk: bytes) -> bytes:
|
||||
|
||||
Reference in New Issue
Block a user