-
-
Notifications
You must be signed in to change notification settings - Fork 38
Update Base.peek
docstring
#440
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
Conversation
When looking at the help for `peek` in the repl, the current docstring looks like it applies to all `IO`, so I added `::ParseStream` to make it more specific. See also JuliaLang/julia#54749
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #440 +/- ##
==========================================
- Coverage 96.17% 95.83% -0.35%
==========================================
Files 14 13 -1
Lines 4185 3937 -248
==========================================
- Hits 4025 3773 -252
- Misses 160 164 +4 ☔ View full report in Codecov by Sentry. |
This makes it clear that it's not an But I think the real problem here is that JuliaSyntax shouldn't add a method to |
Yes, either we remove the docstring or make it module local. No need for this to show in docs at all. |
Both of those seem like bad options, no? Can't we do this level of filtering in Documenter.jl instead? |
Okay, how about detecting when the package is put into the sysimage and not add the docstring in that case? Also, if |
Because it has additional kwargs that should be documented.
Ok, so I think there are a few desirable properties for docstrings added by stdlibs:
Most of that holds for generic packages as well, and this PR is probably not the right place to talk about that anyways. I think I'll just go ahead and merge this as-is, because it's an improvement. Further steps can be taken in a new PR. |
When looking at the help for
peek
in the repl, the current docstring looks like it applies to allIO
, so I added::ParseStream
to make the docstring more specific. See also JuliaLang/julia#54749