You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Both methods call self.with_segments() unconditionally. This can be skipped if the other argument is already an instance of PurePath, and no further (deprecated) positional arguments are given.
Also, relative_to() can inline the core of the is_relative_to() check to avoid the type/deprecated args checks.
Both methods call
self.with_segments()
unconditionally. This can be skipped if the other 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.Linked PRs
pathlib.PurePath.[is_]relative_to()
#111431The text was updated successfully, but these errors were encountered: