File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -2821,11 +2821,8 @@ decorated with :func:`@runtime_checkable <runtime_checkable>`.
2821
2821
2822
2822
.. class :: Reader[T]
2823
2823
2824
- Protocol for reading from a file or other input stream.
2825
-
2826
- .. method :: read(size=...)
2827
- .. method :: readline(size=...)
2828
- .. method :: __iter__()
2824
+ Protocol for reading from a file or other input stream. Implementations
2825
+ must support the ``read ``, ``readline ``, and ``__iter__ `` methods.
2829
2826
2830
2827
For example::
2831
2828
@@ -2836,9 +2833,8 @@ decorated with :func:`@runtime_checkable <runtime_checkable>`.
2836
2833
2837
2834
.. class :: Writer[T]
2838
2835
2839
- Protocol for writing to a file or other output stream.
2840
-
2841
- .. method :: write(o)
2836
+ Protocol for writing to a file or other output stream. Implementations
2837
+ must support the ``write `` method.
2842
2838
2843
2839
For example::
2844
2840
You can’t perform that action at this time.
0 commit comments