Skip to content

Commit 75cc5df

Browse files
committed
Fix pyright issue
1 parent ec76454 commit 75cc5df

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/trio/_highlevel_socket.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def __init__(self, socket: SocketType) -> None:
8181
if socket.type != tsocket.SOCK_STREAM:
8282
raise ValueError("SocketStream requires a SOCK_STREAM socket")
8383

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

395-
self.socket = socket
395+
self.socket: SocketType = socket
396396

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

0 commit comments

Comments
 (0)