]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.14] Fix "encodings" typo in argparse.FileType documentation (GH-148502) (#148513)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 13 Apr 2026 18:33:28 +0000 (20:33 +0200)
committerGitHub <noreply@github.com>
Mon, 13 Apr 2026 18:33:28 +0000 (11:33 -0700)
Fix "encodings" typo in argparse.FileType documentation (GH-148502)
(cherry picked from commit 8ecb6b8b0cff4105c4cca408409fb7a2fadc8b77)

Co-authored-by: Gleb Popov <gvpopov.dev@gmail.com>
Doc/library/argparse.rst

index fe77a3a8b69f540e0a2a5fe3545184db5ff052d8..bc36a2933aa31484999badb176dc5aefed53b03a 100644 (file)
@@ -1934,7 +1934,7 @@ FileType objects
       run and then use the :keyword:`with`-statement to manage the files.
 
    .. versionchanged:: 3.4
-      Added the *encodings* and *errors* parameters.
+      Added the *encoding* and *errors* parameters.
 
    .. deprecated:: 3.14