Skip to content

GH-128520: pathlib ABCs: tighten up argument types #131621

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Mar 24, 2025

Conversation

barneygale
Copy link
Contributor

@barneygale barneygale commented Mar 23, 2025

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.

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`.
@barneygale barneygale enabled auto-merge (squash) March 24, 2025 15:16
@barneygale barneygale merged commit d372472 into python:main Mar 24, 2025
38 checks passed
diegorusso pushed a commit to diegorusso/cpython that referenced this pull request Apr 1, 2025
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`.
seehwan pushed a commit to seehwan/cpython that referenced this pull request Apr 16, 2025
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`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant