]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-138092: Correct the documented signature of ``mmap.flush`` (#138671)
authorAN Long <aisk@users.noreply.github.com>
Sun, 21 Sep 2025 10:54:30 +0000 (19:54 +0900)
committerGitHub <noreply@github.com>
Sun, 21 Sep 2025 10:54:30 +0000 (11:54 +0100)
Doc/library/mmap.rst

index d82dda9e54b15076e6fdd0a8d45e577d0142835e..bd3f7229bdaf70c65d33775a548f58a57a73d058 100644 (file)
@@ -212,7 +212,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