@@ -109,7 +109,7 @@ def write_stdin(self, content: str) -> None:
109109 try :
110110 if sys .platform == "win32" : # explicit check for mypy # pragma: win32 cover
111111 # on Windows we have a PipeHandle object here rather than a file stream
112- import _overlapped # type: ignore[import] # noqa: PLC0415
112+ import _overlapped # type: ignore[import] # noqa: PLC0415,PLC2701
113113
114114 ov = _overlapped .Overlapped (0 )
115115 ov .WriteFile (stdin .handle , bytes_content ) # type: ignore[attr-defined]
@@ -219,9 +219,9 @@ def __enter__(self) -> ExecuteStatus:
219219 status = LocalSubprocessExecuteStatus (self .options , self ._out , self ._err , process )
220220 drain , pid = self ._on_exit_drain , self .process .pid
221221 self ._read_stderr = ReadViaThread (stderr .send (process ), self .err_handler , name = f"err-{ pid } " , drain = drain )
222- self ._read_stderr .__enter__ () # noqa: PLC2801
222+ self ._read_stderr .__enter__ ()
223223 self ._read_stdout = ReadViaThread (stdout .send (process ), self .out_handler , name = f"out-{ pid } " , drain = drain )
224- self ._read_stdout .__enter__ () # noqa: PLC2801
224+ self ._read_stdout .__enter__ ()
225225
226226 if sys .platform == "win32" : # explicit check for mypy: # pragma: win32 cover
227227 process .stderr .read = self ._read_stderr ._drain_stream # type: ignore[assignment,union-attr] # noqa: SLF001
@@ -322,10 +322,10 @@ def _pty(key: str) -> tuple[int, int] | None:
322322
323323
324324__all__ = (
325- "SIG_INTERRUPT" ,
326325 "CREATION_FLAGS" ,
326+ "SIG_INTERRUPT" ,
327327 "LocalSubProcessExecuteInstance" ,
328328 "LocalSubProcessExecutor" ,
329- "LocalSubprocessExecuteStatus" ,
330329 "LocalSubprocessExecuteFailedStatus" ,
330+ "LocalSubprocessExecuteStatus" ,
331331)
0 commit comments