aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/mtest.py
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2023-02-07 13:52:11 -0800
committerNirbheek Chauhan <nirbheek.chauhan@gmail.com>2023-02-08 15:31:58 +0530
commitb2f7f2da1c5e693a426b0aa636a8b256bd1efe83 (patch)
treed6fd2622f770ff5d4712cbbf066eea54055f5936 /mesonbuild/mtest.py
parent301de2752970c8f46e0b127c1d0d3f6cdb0e7c67 (diff)
downloadmeson-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.py4
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]]]