]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
GH-127381: pathlib ABCs: remove `WritablePath.mkdir()` arguments (#130611)
authorBarney Gale <barney.gale@gmail.com>
Sat, 1 Mar 2025 21:25:38 +0000 (21:25 +0000)
committerGitHub <noreply@github.com>
Sat, 1 Mar 2025 21:25:38 +0000 (21:25 +0000)
commitc9932a9ec8a3077933a85101aae9c3ac155e6d04
tree1595080b1400bfbfefb425fd529cd02bb77a829f
parenta55dffd66dbddfd50c8f3de195218d041d26bd3c
GH-127381: pathlib ABCs: remove `WritablePath.mkdir()` arguments (#130611)

Remove the *mode*, *parents* and *exist_ok* arguments from
`WritablePath.mkdir()`. These arguments imply support for POSIX permissions
and checking for preexistence of the path or its parents, but subclasses of
`WritablePath` may not have these capabilities.

The public `Path.mkdir()` method retains these arguments.
Lib/pathlib/_abc.py
Lib/test/test_pathlib/test_pathlib_abc.py