Skip to content

Conversation

barneygale
Copy link
Contributor

Restore JoinablePath.[is_]relative_to(), which were deleted in ef63cca. These methods are too useful to forgo. Restore old tests, and add new tests covering path classes with non-overridden __eq__() and __hash__().

Slightly simplify PurePath.relative_to() while we're in the area.

No change of public behaviour, because the pathlib ABCs are still private.

Restore `JoinablePath.[is_]relative_to()`, which were deleted in
ef63cca. These methods are too useful to
forgo. Restore old tests, and add new tests covering path classes with
non-overridden `__eq__()` and `__hash__()`.

Slightly simplify `PurePath.relative_to()` while we're in the area.

No change of public behaviour, because the pathlib ABCs are still private.
@barneygale barneygale merged commit 49aaee7 into python:main Oct 10, 2025
43 checks passed
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