Skip to content

Commit e3ed261

Browse files
sobolevnAgent-Hellboy
authored andcommitted
pythongh-136437: Document os.path.dirname as accepting only pos-only (python#136946)
1 parent 7353dcb commit e3ed261

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)