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.
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