RafeKettler/magicmethods

__fspath__

westurner opened this issue · 0 comments

New in version 3.6.

abstractmethod __fspath__()
Return the file system path representation of the object.

The method should only return a str or bytes object, with the preference being for str.
https://docs.python.org/3/library/os.html#os.PathLike.__fspath__