Skip to content

Commit

Permalink
janus: remove unused type ignores (#287)
Browse files Browse the repository at this point in the history
The unused type ignores cause `make mypy` to fail when run on master (using the mypy version specified in requirements-dev.txt).
  • Loading branch information
hauntsaninja committed Oct 10, 2020
1 parent 0da8f95 commit ac23eb7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions janus/__init__.py
Expand Up @@ -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:
Expand Down

0 comments on commit ac23eb7

Please sign in to comment.