Skip to content

Commit

Permalink
ftplib: Correct timeout option to float | None (python#11419)
Browse files Browse the repository at this point in the history
  • Loading branch information
heavywatal authored Feb 14, 2024
1 parent 4124569 commit a3d356c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions stdlib/ftplib.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class FTP:
sock: socket | None
welcome: str | None
passiveserver: int
timeout: int
timeout: float | None
af: int
lastresp: str
file: TextIO | None
Expand All @@ -48,7 +48,7 @@ class FTP:
user: str = "",
passwd: str = "",
acct: str = "",
timeout: float = ...,
timeout: float | None = ...,
source_address: tuple[str, int] | None = None,
*,
encoding: str = "utf-8",
Expand All @@ -60,7 +60,7 @@ class FTP:
user: str = "",
passwd: str = "",
acct: str = "",
timeout: float = ...,
timeout: float | None = ...,
source_address: tuple[str, int] | None = None,
) -> None: ...

Expand Down Expand Up @@ -127,7 +127,7 @@ class FTP_TLS(FTP):
acct: str = "",
*,
context: SSLContext | None = None,
timeout: float = ...,
timeout: float | None = ...,
source_address: tuple[str, int] | None = None,
encoding: str = "utf-8",
) -> None: ...
Expand All @@ -141,7 +141,7 @@ class FTP_TLS(FTP):
keyfile: str | None = None,
certfile: str | None = None,
context: SSLContext | None = None,
timeout: float = ...,
timeout: float | None = ...,
source_address: tuple[str, int] | None = None,
*,
encoding: str = "utf-8",
Expand All @@ -156,7 +156,7 @@ class FTP_TLS(FTP):
keyfile: str | None = None,
certfile: str | None = None,
context: SSLContext | None = None,
timeout: float = ...,
timeout: float | None = ...,
source_address: tuple[str, int] | None = None,
) -> None: ...
ssl_version: int
Expand Down

0 comments on commit a3d356c

Please sign in to comment.