From: AN Long Date: Sun, 21 Sep 2025 10:54:30 +0000 (+0900) Subject: gh-138092: Correct the documented signature of ``mmap.flush`` (#138671) X-Git-Tag: v3.15.0a1~245 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e101f907dc827e3dc0bd3b08e4a0897d4a467430;p=thirdparty%2FPython%2Fcpython.git gh-138092: Correct the documented signature of ``mmap.flush`` (#138671) --- diff --git a/Doc/library/mmap.rst b/Doc/library/mmap.rst index d82dda9e54b1..bd3f7229bdaf 100644 --- a/Doc/library/mmap.rst +++ b/Doc/library/mmap.rst @@ -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