mtest: fix annotaion of stdo_task and stde_task

Which are `Task`s, not `Future`s, and they return `None`, not `str`.
Spotted by newer versions of mypy
pull/11365/head
Dylan Baker 2 years ago committed by Nirbheek Chauhan
parent 301de27529
commit b2f7f2da1c
  1. 4
      mesonbuild/mtest.py

@ -1251,8 +1251,8 @@ class TestSubprocess:
self._process = p
self.stdout = stdout
self.stderr = stderr
self.stdo_task = None # type: T.Optional[asyncio.Future[str]]
self.stde_task = None # type: T.Optional[asyncio.Future[str]]
self.stdo_task: T.Optional[asyncio.Task[None]] = None
self.stde_task: T.Optional[asyncio.Task[None]] = None
self.postwait_fn = postwait_fn # type: T.Callable[[], None]
self.all_futures = [] # type: T.List[asyncio.Future]
self.queue = None # type: T.Optional[asyncio.Queue[T.Optional[str]]]

Loading…
Cancel
Save