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
Lots of Python codebases use os.PathLike to indicate a file that can be read/opened/etc. We want CloudPath to be treated like a path in these instances so that when it is passed to other libraries they call trust its .open() method and work with the file content as expected.
In a previous iteration, we had inherited from the PurePath type as below, which I believe made this work. There may be other implementation options as well:
classCloudPath(type(PurePath()):
The text was updated successfully, but these errors were encountered:
Lots of Python codebases use
os.PathLike
to indicate a file that can be read/opened/etc. We wantCloudPath
to be treated like a path in these instances so that when it is passed to other libraries they call trust its.open()
method and work with the file content as expected.Right now
In a previous iteration, we had inherited from the PurePath type as below, which I believe made this work. There may be other implementation options as well:
The text was updated successfully, but these errors were encountered: