-
-
Notifications
You must be signed in to change notification settings - Fork 174
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TempFS.__enter__ returns object of type FS instead of TempFS #580
Comments
Neither https://docs.pyfilesystem.org/en/latest/reference/tempfs.html nor https://docs.pyfilesystem.org/en/latest/reference/osfs.html document the
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Example
To get around this you need to do:
temp_fs_root_sys_path = temp_fs.getsyspath('')
There may be other
OSFS
/TempFS
specific attributes that may fail due to this.TempFS.__enter__
return type should beTempFS
, notFS
.The text was updated successfully, but these errors were encountered: