Fix type hint of urllib3.response.BaseHTTPResponse.geturl
MODIFY
src/urllib3/response.py
src/urllib3/response.py
@@ -411,7 +411,7 @@ class BaseHTTPResponse(io.IOBase):
def info(self) -> HTTPHeaderDict:
return self.headers
- def geturl(self) -> Optional[Union[str, "Literal[False]"]]:
+ def geturl(self) -> Optional[str]:
return self.url

Fix type hint of urllib3.response.BaseHTTPResponse.geturl (#2655)