mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 12:44:28 +08:00
Fix unsound return type hints in urllib module (#10470)
* Fix unsound return type hints in urllib module Closes #10466 * Fix return type of ftplib.FTP.ntransfercmd Related to #10466
This commit is contained in:
@@ -87,7 +87,7 @@ class FTP:
|
||||
def makepasv(self) -> tuple[str, int]: ...
|
||||
def login(self, user: str = "", passwd: str = "", acct: str = "") -> str: ...
|
||||
# In practice, `rest` rest can actually be anything whose str() is an integer sequence, so to make it simple we allow integers.
|
||||
def ntransfercmd(self, cmd: str, rest: int | str | None = None) -> tuple[socket, int]: ...
|
||||
def ntransfercmd(self, cmd: str, rest: int | str | None = None) -> tuple[socket, int | None]: ...
|
||||
def transfercmd(self, cmd: str, rest: int | str | None = None) -> socket: ...
|
||||
def retrbinary(
|
||||
self, cmd: str, callback: Callable[[bytes], object], blocksize: int = 8192, rest: int | str | None = None
|
||||
|
||||
Reference in New Issue
Block a user