Skip to content

Commit b9f5b86

Browse files
committed
Latest mypy requires fewer ignores
1 parent 8acbcc8 commit b9f5b86

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

chess/engine.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,8 @@ def _init_watcher(self) -> asyncio.AbstractChildWatcher:
119119
raise NotImplementedError
120120

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

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

12271227

12281228
class CommandState(enum.Enum):

0 commit comments

Comments
 (0)