From ac23eb74d2a15286449de6cafaa854086550394a Mon Sep 17 00:00:00 2001 From: Shantanu <12621235+hauntsaninja@users.noreply.github.com> Date: Sat, 10 Oct 2020 04:23:38 -0700 Subject: [PATCH] janus: remove unused type ignores (#287) The unused type ignores cause `make mypy` to fail when run on master (using the mypy version specified in requirements-dev.txt). --- janus/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/janus/__init__.py b/janus/__init__.py index b3a919a..ad145f7 100644 --- a/janus/__init__.py +++ b/janus/__init__.py @@ -138,8 +138,8 @@ def f() -> None: self._sync_not_full.notify() fut = self._loop.run_in_executor(None, f) - fut.add_done_callback(self._pending.discard) # type: ignore - self._pending.add(fut) # type: ignore + fut.add_done_callback(self._pending.discard) + self._pending.add(fut) def _notify_async_not_empty(self, *, threadsafe: bool) -> None: async def f() -> None: