Issue 25417: Minor typo in Path.samefile docstring (original) (raw)
The output of pydoc for Path.samefile currently reads
pathlib.Path.samefile = samefile(self, other_path)
Return whether other_file
is the same or not as this file.
(as returned by os.path.samefile(file, other_file)).
It should arguably be something like
pathlib.Path.samefile = samefile(self, other_path)
Return whether other_path
is the same or not as this file.
(as returned by os.path.samefile(file, other_file)).
or
pathlib.Path.samefile = samefile(self, other_path)
Return whether other_path
is the same or not as this file.
(as returned by os.path.samefile(str(self), str(other_path))).