Skip to content

Commit 2d0fac4

Browse files
[3.13] gh-136437: Document os.path.dirname as accepting only pos-only (GH-136946) (#136948)
gh-136437: Document `os.path.dirname` as accepting only pos-only (GH-136946) (cherry picked from commit 3224429) Co-authored-by: sobolevn <mail@sobolevn.me>
1 parent 133c233 commit 2d0fac4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/library/os.path.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ the :mod:`glob` module.)
118118
Accepts a :term:`path-like object`.
119119

120120

121-
.. function:: dirname(path)
121+
.. function:: dirname(path, /)
122122

123123
Return the directory name of pathname *path*. This is the first element of
124124
the pair returned by passing *path* to the function :func:`split`.

0 commit comments

Comments
 (0)