From 86c9ad8999095a91e156ba907a913cdfbbb53dd0 Mon Sep 17 00:00:00 2001 From: sobolevn Date: Mon, 21 Jul 2025 21:16:36 +0300 Subject: [PATCH] gh-136437: Document `os.path.dirname` as accepting only pos-only --- Doc/library/os.path.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/os.path.rst b/Doc/library/os.path.rst index 5b238ad2ffc8de..d59f91f2aa8000 100644 --- a/Doc/library/os.path.rst +++ b/Doc/library/os.path.rst @@ -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`.