Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement highlevel unix socket listeners #3187

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
Prev Previous commit
Next Next commit
Fix pyright issue
CoolCat467 committed Jan 15, 2025
commit 75cc5dfcb3735cc5c1419900cd01e1fc1cb3008d
4 changes: 2 additions & 2 deletions src/trio/_highlevel_socket.py
Original file line number Diff line number Diff line change
@@ -81,7 +81,7 @@ def __init__(self, socket: SocketType) -> None:
if socket.type != tsocket.SOCK_STREAM:
raise ValueError("SocketStream requires a SOCK_STREAM socket")

self.socket = socket
self.socket: SocketType = socket
self._send_conflict_detector = ConflictDetector(
"another task is currently sending data on this SocketStream",
)
@@ -392,7 +392,7 @@ def __init__(
if not listening:
raise ValueError("SocketListener requires a listening socket")

self.socket = socket
self.socket: SocketType = socket

async def accept(self) -> SocketStream:
"""Accept an incoming connection.