Код: Выделить всё
import socket
def a() -> socket.SocketType:
...
b = a()
c, _ = b.accept()
Подробнее здесь: https://stackoverflow.com/questions/793 ... ute-accept
Код: Выделить всё
import socket
def a() -> socket.SocketType:
...
b = a()
c, _ = b.accept()