]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.14] gh-138092: Correct the documented signature of ``mmap.flush`` (GH-138671)...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 21 Sep 2025 20:24:10 +0000 (22:24 +0200)
committerGitHub <noreply@github.com>
Sun, 21 Sep 2025 20:24:10 +0000 (21:24 +0100)
gh-138092: Correct the documented signature of ``mmap.flush`` (GH-138671)
(cherry picked from commit e101f907dc827e3dc0bd3b08e4a0897d4a467430)

Co-authored-by: AN Long <aisk@users.noreply.github.com>
Doc/library/mmap.rst

index 8fca79b23e4e156d67df64ac608d69ebebeb4cf2..f78518ac2232a0ef2a4ea6beb74d918b73b25c2c 100644 (file)
@@ -200,7 +200,8 @@ To map anonymous memory, -1 should be passed as the fileno along with the length
          Writable :term:`bytes-like object` is now accepted.
 
 
-   .. method:: flush([offset[, size]])
+   .. method:: flush()
+               flush(offset, size, /)
 
       Flushes changes made to the in-memory copy of a file back to disk. Without
       use of this call there is no guarantee that changes are written back before