Skip to content

Commit 32b43ea

Browse files
committed
chore(subprocess) Fix ruff issues
uv run ruff check --select ALL . --fix --unsafe-fixes --preview --show-fixes; uv run ruff format . Fixed 6 errors: - src/libvcs/_internal/subprocess.py: 3 × PYI061 (redundant-none-literal) 3 × UP045 (non-pep604-annotation-optional)
1 parent 80b480e commit 32b43ea

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/libvcs/_internal/subprocess.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ def Popen(
258258
args: _CMD | None = ...,
259259
universal_newlines: t.Literal[False] = ...,
260260
*,
261-
text: t.Literal[None, False] = ...,
261+
text: t.Literal[False] | None = ...,
262262
encoding: None = ...,
263263
errors: None = ...,
264264
) -> subprocess.Popen[bytes]: ...
@@ -370,7 +370,7 @@ def check_output(
370370
input: str | bytes | None = ...,
371371
encoding: None = ...,
372372
errors: None = ...,
373-
text: t.Literal[None, False] = ...,
373+
text: t.Literal[False] | None = ...,
374374
**kwargs: t.Any,
375375
) -> bytes: ...
376376

@@ -484,7 +484,7 @@ def run(
484484
encoding: None = ...,
485485
errors: None = ...,
486486
input: bytes | None = ...,
487-
text: t.Literal[None, False] = ...,
487+
text: t.Literal[False] | None = ...,
488488
) -> subprocess.CompletedProcess[bytes]: ...
489489

490490
def run(

0 commit comments

Comments
 (0)