Python type annotations: Proper way to annotate functions returning library object
Python type annotations: Proper way to annotate functions returning library object Question: What is the proper way to annotate a type function returns in this code? from requests import Request, Session def make_request(method: str, url: str) -> ??? : # Response object will be returned request = Request(method, url).prepare() session = Session() r = session.send(request) …