]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
GH-128520: pathlib ABCs: tighten up argument types (#131621)
authorBarney Gale <barney.gale@gmail.com>
Mon, 24 Mar 2025 15:39:08 +0000 (15:39 +0000)
committerGitHub <noreply@github.com>
Mon, 24 Mar 2025 15:39:08 +0000 (15:39 +0000)
commitd372472896ca9d5666b40072a9ed7040300e11a0
tree1c31e514b8f30cf16d12ce61ee4b289b38c7ce4c
parentd2d886215cf694d5f3e7f0cbd76507a96bac322b
GH-128520: pathlib ABCs: tighten up argument types (#131621)

In `JoinablePath.full_match()` and `ReadablePath.glob()`, accept a `str`
pattern argument rather than `JoinablePath | str`.

In `ReadablePath.copy()` and `copy_into()`, accept a `WritablePath` target
argument rather than `WritablePath | str`.
Lib/pathlib/__init__.py
Lib/pathlib/types.py