diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2023-02-07 13:52:11 -0800 |
---|---|---|
committer | Nirbheek Chauhan <nirbheek.chauhan@gmail.com> | 2023-02-08 15:31:58 +0530 |
commit | b2f7f2da1c5e693a426b0aa636a8b256bd1efe83 (patch) | |
tree | d6fd2622f770ff5d4712cbbf066eea54055f5936 /mesonbuild/mtest.py | |
parent | 301de2752970c8f46e0b127c1d0d3f6cdb0e7c67 (diff) | |
download | meson-b2f7f2da1c5e693a426b0aa636a8b256bd1efe83.zip meson-b2f7f2da1c5e693a426b0aa636a8b256bd1efe83.tar.gz meson-b2f7f2da1c5e693a426b0aa636a8b256bd1efe83.tar.bz2 |
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
Diffstat (limited to 'mesonbuild/mtest.py')
-rw-r--r-- | mesonbuild/mtest.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mesonbuild/mtest.py b/mesonbuild/mtest.py index fca9ae0..0b2345e 100644 --- a/mesonbuild/mtest.py +++ b/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]]] |