From 4f9482517586b9b9c0af68bbd86e4977bc429d08 Mon Sep 17 00:00:00 2001 From: AN Long Date: Tue, 9 Sep 2025 00:31:37 +0900 Subject: [PATCH] Correct the signature of mmap.flush in document --- Doc/library/mmap.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Doc/library/mmap.rst b/Doc/library/mmap.rst index d82dda9e54b150..bd3f7229bdaf70 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