-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Improve docstrings for filesize
and stat
#56244
Improve docstrings for filesize
and stat
#56244
Conversation
merger actual master into mine
update feature branch
filesize
and stat
Co-authored-by: Neven Sajko <[email protected]>
We should probably keep
They are all defined here: Lines 487 to 507 in 6c70bf7
|
Co-authored-by: Neven Sajko <[email protected]>
…sTheLate/julia into improve_docstring_filesize
That turned out to be a bigger job than I expected. I ended up putting in the work to clean up the docstrings throughout the module. Here is a highlight of the changes made, and relevant desicions:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you! This is clearly a significant improvement and I appreciate the work you put into it. I agree with all your changes and have a few minor tweaks I'd recommend.
Co-authored-by: Lilith Orion Hafner <[email protected]>
Co-authored-by: Lilith Orion Hafner <[email protected]>
Co-authored-by: Lilith Orion Hafner <[email protected]>
Co-authored-by: Lilith Orion Hafner <[email protected]>
Co-authored-by: Lilith Orion Hafner <[email protected]>
Lovely, thanks so much! |
The docstring for
filesize
failes to mention how paths are joined, and document the full-path-as-single-argument method. I know that this version of the docstring might be a regression when it comes to accurately reflecting the underlying methods, but it does serve the propose of documenting how it should be called much better, which is IMO the purpose of docstrings.I also updated the docstring for
stat
to drop the shortcut, and be more explicit about the intended format for arguments to be slurped and stating thatjoinpath
is used.