Skip to content

Commit 3856ff6

Browse files
committed
_internal(fix[async_subprocess]): Fix mypy type errors and formatting
why: Ensure Phase 1 passes full verification pipeline what: - Add None checks before .strip() calls on result.stdout in tests - Apply ruff formatting to list comprehension in _args_as_list()
1 parent e5dd202 commit 3856ff6

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

tests/_internal/test_async_subprocess.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,7 @@ async def test_run_with_cwd(self, tmp_path: Path) -> None:
187187
cmd = AsyncSubprocessCommand(args=["pwd"], cwd=tmp_path)
188188
result = await cmd.run(text=True)
189189

190+
assert result.stdout is not None
190191
assert result.stdout.strip() == str(tmp_path)
191192

192193
@pytest.mark.asyncio
@@ -228,5 +229,6 @@ async def test_concurrent_commands(self) -> None:
228229

229230
assert len(results) == 5
230231
for i, result in enumerate(results):
232+
assert result.stdout is not None
231233
assert result.stdout.strip() == str(i)
232234
assert result.returncode == 0

0 commit comments

Comments
 (0)