Suppose I'm writing a function that takes a socket as a parameter. How should I type hint it properly?
socket
def read_socket(socket: ???): ....
The type is just socket.socket.
socket.socket
import socket def f(sock: socket.socket): ...