diff --git a/later/task.py b/later/task.py index f1b56d2..d638a9a 100644 --- a/later/task.py +++ b/later/task.py @@ -153,7 +153,6 @@ class WatcherError(RuntimeError): pass -# pyre-fixme[13]: Attribute `loop` is never initialized. class Watcher: _tasks: Dict[asyncio.Future, Optional[FixerType]] _scheduled: List[FixerType] @@ -162,6 +161,7 @@ class Watcher: _cancel_timeout: float _preexit_callbacks: List[Callable[[], None]] _shielded_tasks: Dict[asyncio.Task, asyncio.Future] + # pyre-fixme[13]: Attribute `loop` is never initialized. loop: asyncio.AbstractEventLoop running: bool done_ok: bool diff --git a/later/unittest/case.py b/later/unittest/case.py index 9bf087d..b306243 100644 --- a/later/unittest/case.py +++ b/later/unittest/case.py @@ -102,6 +102,8 @@ def exception(self) -> BaseException | None: self._mark_managed() return super().exception() + # pyre-fixme[14]: `add_done_callback` overrides method defined in `Future` + # inconsistently. def add_done_callback( self, fn: Callable[[asyncio.Task], None], *, context: Context | None = None ) -> None: