forked from kenzuya/unshackle
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:
@@ -15,12 +15,12 @@ class Events:
|
||||
# Track is about to be Multiplexed into a Container
|
||||
TRACK_MULTIPLEX = 5
|
||||
|
||||
def __init__(self):
|
||||
def __init__(self) -> None:
|
||||
self.__subscriptions: dict[Events.Types, list[Callable]] = {}
|
||||
self.__ephemeral: dict[Events.Types, list[Callable]] = {}
|
||||
self.reset()
|
||||
|
||||
def reset(self):
|
||||
def reset(self) -> None:
|
||||
"""Reset Event Observer clearing all Subscriptions."""
|
||||
self.__subscriptions = {k: [] for k in Events.Types.__members__.values()}
|
||||
self.__ephemeral = deepcopy(self.__subscriptions)
|
||||
|
||||
Reference in New Issue
Block a user