Skip to content

Commit 4a6c84f

Browse files
authored
GH-104375: Use versionchanged to describe new arguments in pathlib docs (GH-104376)
1 parent d2cbb6e commit 4a6c84f

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

Doc/library/pathlib.rst

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -596,8 +596,8 @@ Pure paths provide the following methods and properties:
596596

597597
Set *case_sensitive* to ``True`` or ``False`` to override this behaviour.
598598

599-
.. versionadded:: 3.12
600-
The *case_sensitive* argument.
599+
.. versionchanged:: 3.12
600+
The *case_sensitive* parameter was added.
601601

602602
.. versionchanged:: 3.13
603603
Support for the recursive wildcard "``**``" was added. In previous
@@ -642,8 +642,8 @@ Pure paths provide the following methods and properties:
642642
are present in the path; call :meth:`~Path.resolve` first if
643643
necessary to resolve symlinks.
644644

645-
.. versionadded:: 3.12
646-
The *walk_up* argument (old behavior is the same as ``walk_up=False``).
645+
.. versionchanged:: 3.12
646+
The *walk_up* parameter was added (old behavior is the same as ``walk_up=False``).
647647

648648
.. deprecated-removed:: 3.12 3.14
649649

@@ -962,11 +962,11 @@ call fails (for example because the path doesn't exist).
962962
Return only directories if *pattern* ends with a pathname components
963963
separator (:data:`~os.sep` or :data:`~os.altsep`).
964964

965-
.. versionadded:: 3.12
966-
The *case_sensitive* argument.
965+
.. versionchanged:: 3.12
966+
The *case_sensitive* parameter was added.
967967

968-
.. versionadded:: 3.13
969-
The *follow_symlinks* argument.
968+
.. versionchanged:: 3.13
969+
The *follow_symlinks* parameter was added.
970970

971971
.. method:: Path.group()
972972

@@ -1362,8 +1362,8 @@ call fails (for example because the path doesn't exist).
13621362
infinite loop is encountered along the resolution path, :exc:`RuntimeError`
13631363
is raised.
13641364

1365-
.. versionadded:: 3.6
1366-
The *strict* argument (pre-3.6 behavior is strict).
1365+
.. versionchanged:: 3.6
1366+
The *strict* parameter was added (pre-3.6 behavior is strict).
13671367

13681368
.. method:: Path.rglob(pattern, *, case_sensitive=None, follow_symlinks=None)
13691369

@@ -1394,11 +1394,11 @@ call fails (for example because the path doesn't exist).
13941394
Return only directories if *pattern* ends with a pathname components
13951395
separator (:data:`~os.sep` or :data:`~os.altsep`).
13961396

1397-
.. versionadded:: 3.12
1398-
The *case_sensitive* argument.
1397+
.. versionchanged:: 3.12
1398+
The *case_sensitive* parameter was added.
13991399

1400-
.. versionadded:: 3.13
1401-
The *follow_symlinks* argument.
1400+
.. versionchanged:: 3.13
1401+
The *follow_symlinks* parameter was added.
14021402

14031403
.. method:: Path.rmdir()
14041404

0 commit comments

Comments
 (0)