最佳答案
The following produces NameError: name 'Client' is not defined
. How can I solve it?
class Server():
def register_client(self, client: Client)
pass
class Client():
def __init__(self, server: Server):
server.register_client(self)