]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-136437: Document `os.path.dirname` as accepting only pos-only (#136946)
authorsobolevn <mail@sobolevn.me>
Mon, 21 Jul 2025 18:22:58 +0000 (21:22 +0300)
committerGitHub <noreply@github.com>
Mon, 21 Jul 2025 18:22:58 +0000 (18:22 +0000)
Doc/library/os.path.rst

index 5b238ad2ffc8def3d1d96cbc79a59ec8591fb2b5..d59f91f2aa8000052a0f06971865beccf0d73384 100644 (file)
@@ -118,7 +118,7 @@ the :mod:`glob` module.)
       Accepts a :term:`path-like object`.
 
 
-.. function:: dirname(path)
+.. function:: dirname(path, /)
 
    Return the directory name of pathname *path*.  This is the first element of
    the pair returned by passing *path* to the function :func:`split`.