Make multiprocessing pipes generic (#11137)

This commit is contained in:
Avasam
2024-10-01 21:11:42 -04:00
committed by GitHub
parent 44aa63330b
commit bdb5b52d50
6 changed files with 72 additions and 27 deletions

View File

@@ -19,8 +19,9 @@ _global_shutdown: bool
class _ThreadWakeup:
_closed: bool
_reader: Connection
_writer: Connection
# Any: Unused send and recv methods
_reader: Connection[Any, Any]
_writer: Connection[Any, Any]
def close(self) -> None: ...
def wakeup(self) -> None: ...
def clear(self) -> None: ...