Type hints: solve circular dependency

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) Answers: Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please treat … Read more