-
-
Notifications
You must be signed in to change notification settings - Fork 351
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 documentation for statistics()
and aclose()
on memory channels
#3101
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #3101 +/- ##
=============================================
Coverage 99.58338% 99.58338%
=============================================
Files 121 121
Lines 18002 18002
Branches 3248 3248
=============================================
Hits 17927 17927
Misses 52 52
Partials 23 23
|
pre-commit.ci autofix |
443813e
to
27aef3d
Compare
@@ -111,7 +111,7 @@ def __init__(self, max_buffer_size: int | float): # noqa: PYI041 | |||
|
|||
|
|||
@attrs.frozen | |||
class MemoryChannelStats: | |||
class MemoryChannelStatistics: |
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.
I think this is backwards compatible as far as we care.
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.
If it wasn't publicaly re-exported originally, I would think this should count as backwards compatible, and if anyone does have issues we can tell them its their fault for digging into Trio's internals.
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.
Looks good to me, don't foresee any issues with this.
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.
Looks good.
"No docstring found for class \"trio.MemoryChannelStatistics\"", | ||
"No docstring found for class \"trio._channel.MemoryChannelStatistics\"", |
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.
I guess you could've added a docstring to the class at the same time to get rid of these as well
I'm pretty sure the reason Sphinx isn't showing them is because they have no docstrings. Easy fix.
Mentioned on Gitter.