]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.12] ftplib docs: `timeout` doesn't have to be a whole number (GH-115443) (#115445)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 14 Feb 2024 10:47:59 +0000 (11:47 +0100)
committerGitHub <noreply@github.com>
Wed, 14 Feb 2024 10:47:59 +0000 (10:47 +0000)
ftplib docs: `timeout` doesn't have to be a whole number (GH-115443)
(cherry picked from commit 3fd2ad8241a61e75b2cd33c697af276863efbb51)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Doc/library/ftplib.rst

index 2f98a272c297ae3397db52449852f833ced5e1e4..9abf7974d1936db8082c2c979e7c1fd1c44309eb 100644 (file)
@@ -104,7 +104,7 @@ FTP objects
    :param timeout:
       A timeout in seconds for blocking operations like :meth:`connect`
       (default: the global default timeout setting).
-   :type timeout: int | None
+   :type timeout: float | None
 
    :param source_address:
       |param_doc_source_address|
@@ -178,7 +178,7 @@ FTP objects
       :param timeout:
          A timeout in seconds for the connection attempt
          (default: the global default timeout setting).
-      :type timeout: int | None
+      :type timeout: float | None
 
       :param source_address:
          |param_doc_source_address|
@@ -483,7 +483,7 @@ FTP_TLS objects
    :param timeout:
       A timeout in seconds for blocking operations like :meth:`~FTP.connect`
       (default: the global default timeout setting).
-   :type timeout: int | None
+   :type timeout: float | None
 
    :param source_address:
       |param_doc_source_address|