Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

gh-127647: Add typing.Reader and Writer protocols#127648

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
JelleZijlstra merged 37 commits intopython:mainfromsrittau:typing-readable-writable
Mar 6, 2025
Merged
Changes from1 commit
Commits
Show all changes
37 commits
Select commitHold shift + click to select a range
b45fec0
Add typing.Reader and Writer protocols
srittauDec 5, 2024
1525e05
Add a note about Iterable
srittauDec 5, 2024
7867ec1
Fix docs formatting
srittauDec 5, 2024
6a22a02
Small wording improvements
srittauDec 5, 2024
5d632a3
Simplify the docs/improve formatting
srittauDec 5, 2024
4d50c2e
Explicitly document the methods
srittauDec 5, 2024
1e1ea41
Mark protocol members as abstract
srittauDec 6, 2024
56a38a0
Add .. versionadded
srittauDec 6, 2024
f2c331b
Added slashes to documented signatures
srittauDec 6, 2024
6764b6a
Fix overindentation
srittauDec 6, 2024
022acaa
Fix documentation of Reader.__iter__()
srittauDec 6, 2024
b86073d
Remove the @runtime_checkable flags
srittauDec 6, 2024
65eb040
Merge branch 'main' into typing-readable-writable
srittauJan 6, 2025
2b9159d
Merge branch 'main' into typing-readable-writable
srittauFeb 25, 2025
1f42b21
Remove Reader.__iter__() and readline()
srittauFeb 25, 2025
0325f5a
Move protocols to io
srittauFeb 25, 2025
632511a
Update whatsnew
srittauFeb 25, 2025
3b384f9
Update NEWS file
srittauFeb 25, 2025
5bdb4cc
Fix abstractmethod import
srittauFeb 25, 2025
35dcaf4
Fix runtime_checkable link in docs
srittauFeb 25, 2025
5584a57
Add Reader and Writer to proto allowlist
srittauFeb 25, 2025
af81301
Import Reader and Writer into _pyio
srittauFeb 25, 2025
5a8b915
Import _collections_abc dynamically
srittauFeb 25, 2025
b1593fa
Merge branch 'main' into typing-readable-writable
srittauFeb 25, 2025
577b893
Use metaclass instead of deriving from `ABC`
srittauFeb 25, 2025
cedfa42
Use __class_getitem__ instead of making the class generic
srittauFeb 25, 2025
a0b9e47
Remove type annotations
srittauFeb 25, 2025
53a2250
Move import back to top level
srittauFeb 25, 2025
03aa3a2
Merge branch 'main' into typing-readable-writable
srittauFeb 27, 2025
ca72c19
Fix doc reference to decorator
srittauFeb 27, 2025
3b5975e
Fix references in docs
srittauFeb 27, 2025
96080fe
Split signature
srittauFeb 27, 2025
3723370
Document that Reader and Writer are generic
srittauFeb 27, 2025
76003a8
Add tests
srittauFeb 27, 2025
43e23f0
Add missing import
srittauFeb 27, 2025
c644770
Doc fixes
srittauFeb 27, 2025
bfab2fd
Merge branch 'main' into typing-readable-writable
srittauMar 6, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
PrevPrevious commit
NextNext commit
Added slashes to documented signatures
  • Loading branch information
@srittau
srittau committedDec 6, 2024
commitf2c331b2103f014b72bcce386383ba19e901b581
6 changes: 3 additions & 3 deletionsDoc/library/typing.rst
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -2825,12 +2825,12 @@ decorated with :func:`@runtime_checkable <runtime_checkable>`.

.. versionadded:: next

.. method:: read(size=...)
.. method:: read(size=..., /)

Read data from the input stream and return it. If ``size`` is
specified, at most ``size`` items (bytes/characters) will be read.

.. method:: readline(size=...)
.. method:: readline(size=..., /)

Read a line of data from the input stream and return it. If ``size`` is
specified, at most ``size`` items (bytes/characters) will be read.
Expand All@@ -2852,7 +2852,7 @@ decorated with :func:`@runtime_checkable <runtime_checkable>`.

.. versionadded:: next

.. method:: write(data)
.. method:: write(data, /)

Write data to the output stream and return number of items
(bytes/characters) written.
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp