Skip to content

Commit

Permalink
Latest mypy requires fewer ignores
Browse files Browse the repository at this point in the history
  • Loading branch information
niklasf committed Apr 30, 2022
1 parent 8acbcc8 commit b9f5b86
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions chess/engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,8 @@ def _init_watcher(self) -> asyncio.AbstractChildWatcher:
raise NotImplementedError

try:
os.close(os.pidfd_open(os.getpid())) # type: ignore
watcher: asyncio.AbstractChildWatcher = asyncio.PidfdChildWatcher() # type: ignore
os.close(os.pidfd_open(os.getpid()))
watcher: asyncio.AbstractChildWatcher = asyncio.PidfdChildWatcher()
LOGGER.debug("Using PidfdChildWatcher")
return watcher
except (AttributeError, OSError):
Expand Down Expand Up @@ -1222,7 +1222,7 @@ async def popen(cls: Type[ProtocolT], command: Union[str, List[str]], *, setpgrp
# Unix.
popen_args["start_new_session"] = True

return await asyncio.get_running_loop().subprocess_exec(cls, *command, **popen_args) # type: ignore
return await asyncio.get_running_loop().subprocess_exec(cls, *command, **popen_args)


class CommandState(enum.Enum):
Expand Down

0 comments on commit b9f5b86

Please sign in to comment.