@@ -682,11 +682,9 @@ async def accept(self) -> tuple[SocketType, AddressFormat]:
682
682
async def connect (self , address : AddressFormat ) -> None :
683
683
raise NotImplementedError
684
684
685
- # argument names with __ used because of typeshed, see comment for recv in _SocketType
686
685
def recv (__self , __buflen : int , __flags : int = 0 ) -> Awaitable [bytes ]:
687
686
raise NotImplementedError
688
687
689
- # argument names with __ used because of typeshed, see comment for recv in _SocketType
690
688
def recv_into (
691
689
__self ,
692
690
buffer : Buffer ,
@@ -695,7 +693,6 @@ def recv_into(
695
693
) -> Awaitable [int ]:
696
694
raise NotImplementedError
697
695
698
- # argument names with __ used because of typeshed, see comment for recv in _SocketType
699
696
# return type of socket.socket.recvfrom in typeshed is tuple[bytes, Any]
700
697
def recvfrom (
701
698
__self ,
@@ -716,7 +713,7 @@ def recvfrom_into(
716
713
if sys .platform != "win32" or (
717
714
not TYPE_CHECKING and hasattr (_stdlib_socket .socket , "recvmsg" )
718
715
):
719
- # argument names with __ used because of typeshed, see comment for recv in _SocketType
716
+
720
717
def recvmsg (
721
718
__self ,
722
719
__bufsize : int ,
@@ -728,7 +725,7 @@ def recvmsg(
728
725
if sys .platform != "win32" or (
729
726
not TYPE_CHECKING and hasattr (_stdlib_socket .socket , "recvmsg_into" )
730
727
):
731
- # argument names with __ used because of typeshed, see comment for recv in _SocketType
728
+
732
729
def recvmsg_into (
733
730
__self ,
734
731
__buffers : Iterable [Buffer ],
@@ -737,19 +734,16 @@ def recvmsg_into(
737
734
) -> Awaitable [tuple [int , list [tuple [int , int , bytes ]], int , Any ]]:
738
735
raise NotImplementedError
739
736
740
- # argument names with __ used because of typeshed, see comment for recv in _SocketType
741
737
def send (__self , __bytes : Buffer , __flags : int = 0 ) -> Awaitable [int ]:
742
738
raise NotImplementedError
743
739
744
- # argument names with __ used because of typeshed, see comment for recv in _SocketType
745
740
@overload
746
741
async def sendto (
747
742
self ,
748
743
__data : Buffer ,
749
744
__address : tuple [object , ...] | str | Buffer ,
750
745
) -> int : ...
751
746
752
- # argument names with __ used because of typeshed, see comment for recv in _SocketType
753
747
@overload
754
748
async def sendto (
755
749
self ,
@@ -764,7 +758,7 @@ async def sendto(self, *args: Any) -> int:
764
758
if sys .platform != "win32" or (
765
759
not TYPE_CHECKING and hasattr (_stdlib_socket .socket , "sendmsg" )
766
760
):
767
- # argument names with __ used because of typeshed, see comment for recv in _SocketType
761
+
768
762
@_wraps (_stdlib_socket .socket .sendmsg , assigned = (), updated = ())
769
763
async def sendmsg (
770
764
self ,
@@ -1144,7 +1138,7 @@ def recv(__self, __buflen: int, __flags: int = 0) -> Awaitable[bytes]: ...
1144
1138
################################################################
1145
1139
1146
1140
if TYPE_CHECKING :
1147
- # argument names with __ used because of typeshed, see comment for recv in _SocketType
1141
+
1148
1142
def recv_into (
1149
1143
__self ,
1150
1144
buffer : Buffer ,
@@ -1162,7 +1156,6 @@ def recv_into(
1162
1156
################################################################
1163
1157
1164
1158
if TYPE_CHECKING :
1165
- # argument names with __ used because of typeshed, see comment for recv in _SocketType
1166
1159
# return type of socket.socket.recvfrom in typeshed is tuple[bytes, Any]
1167
1160
def recvfrom (
1168
1161
__self ,
@@ -1201,7 +1194,7 @@ def recvfrom_into(
1201
1194
not TYPE_CHECKING and hasattr (_stdlib_socket .socket , "recvmsg" )
1202
1195
):
1203
1196
if TYPE_CHECKING :
1204
- # argument names with __ used because of typeshed, see comment for recv in _SocketType
1197
+
1205
1198
def recvmsg (
1206
1199
__self ,
1207
1200
__bufsize : int ,
@@ -1223,7 +1216,7 @@ def recvmsg(
1223
1216
not TYPE_CHECKING and hasattr (_stdlib_socket .socket , "recvmsg_into" )
1224
1217
):
1225
1218
if TYPE_CHECKING :
1226
- # argument names with __ used because of typeshed, see comment for recv in _SocketType
1219
+
1227
1220
def recvmsg_into (
1228
1221
__self ,
1229
1222
__buffers : Iterable [Buffer ],
@@ -1242,7 +1235,7 @@ def recvmsg_into(
1242
1235
################################################################
1243
1236
1244
1237
if TYPE_CHECKING :
1245
- # argument names with __ used because of typeshed, see comment for recv in _SocketType
1238
+
1246
1239
def send (__self , __bytes : Buffer , __flags : int = 0 ) -> Awaitable [int ]: ...
1247
1240
1248
1241
send = _make_simple_sock_method_wrapper (
@@ -1254,15 +1247,13 @@ def send(__self, __bytes: Buffer, __flags: int = 0) -> Awaitable[int]: ...
1254
1247
# sendto
1255
1248
################################################################
1256
1249
1257
- # argument names with __ used because of typeshed, see comment for recv in _SocketType
1258
1250
@overload
1259
1251
async def sendto (
1260
1252
self ,
1261
1253
__data : Buffer ,
1262
1254
__address : tuple [object , ...] | str | Buffer ,
1263
1255
) -> int : ...
1264
1256
1265
- # argument names with __ used because of typeshed, see comment for recv in _SocketType
1266
1257
@overload
1267
1258
async def sendto (
1268
1259
self ,
@@ -1293,7 +1284,7 @@ async def sendto(self, *args: Any) -> int:
1293
1284
if sys .platform != "win32" or (
1294
1285
not TYPE_CHECKING and hasattr (_stdlib_socket .socket , "sendmsg" )
1295
1286
):
1296
- # argument names with __ used because of typeshed, see comment for recv in _SocketType
1287
+
1297
1288
@_wraps (_stdlib_socket .socket .sendmsg , assigned = (), updated = ())
1298
1289
async def sendmsg (
1299
1290
self ,
0 commit comments