diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2023-02-07 13:52:11 -0800 |
---|---|---|
committer | Nirbheek Chauhan <nirbheek@centricular.com> | 2023-02-19 02:55:58 +0530 |
commit | 71e652a6004e64a8483183f8f4a987b38d520e3d (patch) | |
tree | b5d4be4287a69dab3c8702744b695ebcff9118be | |
parent | e4de42dba203018a8649799e3b29f1e1da4e937a (diff) | |
download | meson-71e652a6004e64a8483183f8f4a987b38d520e3d.zip meson-71e652a6004e64a8483183f8f4a987b38d520e3d.tar.gz meson-71e652a6004e64a8483183f8f4a987b38d520e3d.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
-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 124da87..50a5f97 100644 --- a/mesonbuild/mtest.py +++ b/mesonbuild/mtest.py @@ -1247,8 +1247,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]]] |