-
-
Notifications
You must be signed in to change notification settings - Fork 177
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
add options for several IO operation #362
base: master
Are you sure you want to change the base?
Conversation
it seems no extra parameters are required for `iotools.make_stream`, and the description for `options` is 'arguments for the filesystem'. so I guess it was misplaced.
Just an observation, readtext is as readable as read_text. But I guess it is down to historical design decision. |
And maybe it's worth adding docstrings like this too? |
the syntax error is cause by the trailing comma in func def, which is added by black. pyproject.toml is added for black to announce the target python version related: psf/black#419
Question for @willmcgugan - looking at https://docs.pyfilesystem.org/en/latest/reference/base.html , should all functions that take @tzing Sorry for potentially opening a can of worms... 😕 Your PR looks great so far IMHO 👍 |
ping @willmcgugan |
Type of changes
Checklist
Description
Pre discuss in #361, this PR add options for
readbytes
andreadtext
in each class.Also it changes a behavior in
FS.open
, I found this when I was investigate if there's any other thing to be changed.It seems no extra parameters are required for
iotools.make_stream
, and the description foroptions
is arguments for the filesystem. So I guess it was misplaced and move options foropenbin
inside the function.