Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.7k
Closed
Description
Both methods callself.with_segments() unconditionally. This can be skipped if theother argument is already an instance ofPurePath, and no further (deprecated) positional arguments are given.
Also,relative_to() can inline the core of theis_relative_to() check to avoid the type/deprecated args checks.