Fix urllib3.response.HTTPResponse.geturl() return type (#8704)

urllib3.response.HTTPResponse.geturl() return should be `str | None`.

Source: 3951d3cf8f/src/urllib3/response.py (L416-L417)
This commit is contained in:
Elton H.Y. Chou
2022-09-08 08:00:38 +08:00
committed by GitHub
parent cc7d2567f2
commit ff3c3b8373

View File

@@ -99,4 +99,4 @@ class HTTPResponse(io.IOBase):
def readinto(self, b: bytearray) -> int: ...
def supports_chunked_reads(self) -> bool: ...
def read_chunked(self, amt: int | None = ..., decode_content: bool | None = ...) -> Iterator[bytes]: ...
def geturl(self) -> bool | str: ...
def geturl(self) -> str | None: ...