Skip to content

Commit

Permalink
Properly document statistics object
Browse files Browse the repository at this point in the history
  • Loading branch information
A5rocks authored Oct 5, 2024
1 parent 25be18c commit 443813e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 2 additions & 0 deletions docs/source/reference-core.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1241,6 +1241,8 @@ more features beyond the core channel interface:
.. autoclass:: MemoryReceiveChannel
:members:

.. autoclass:: MemoryChannelStats
:members:

A simple channel example
++++++++++++++++++++++++
Expand Down
1 change: 1 addition & 0 deletions src/trio/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
from ._channel import (
MemoryReceiveChannel as MemoryReceiveChannel,
MemorySendChannel as MemorySendChannel,
MemoryChannelStats as MemoryChannelStats,
open_memory_channel as open_memory_channel,
)
from ._core import (
Expand Down
4 changes: 0 additions & 4 deletions src/trio/_tests/_check_type_completeness.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,9 @@
"all": [
"No docstring found for class \"trio.MemoryReceiveChannel\"",
"No docstring found for class \"trio._channel.MemoryReceiveChannel\"",
"No docstring found for function \"trio._channel.MemoryReceiveChannel.statistics\"",
"No docstring found for class \"trio._channel.MemoryChannelStats\"",
"No docstring found for function \"trio._channel.MemoryReceiveChannel.aclose\"",
"No docstring found for class \"trio.MemorySendChannel\"",
"No docstring found for class \"trio._channel.MemorySendChannel\"",
"No docstring found for function \"trio._channel.MemorySendChannel.statistics\"",
"No docstring found for function \"trio._channel.MemorySendChannel.aclose\"",
"No docstring found for class \"trio._core._run.Task\"",
"No docstring found for class \"trio._socket.SocketType\"",
"No docstring found for function \"trio._highlevel_socket.SocketStream.send_all\"",
Expand Down

0 comments on commit 443813e

Please sign in to comment.