-
-
Notifications
You must be signed in to change notification settings - Fork 32k
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 1 commit
Commits
Show all changes
37 commits
Select commit
Hold shift + click to select a range
b45fec0
Add typing.Reader and Writer protocols
srittau 1525e05
Add a note about Iterable
srittau 7867ec1
Fix docs formatting
srittau 6a22a02
Small wording improvements
srittau 5d632a3
Simplify the docs/improve formatting
srittau 4d50c2e
Explicitly document the methods
srittau 1e1ea41
Mark protocol members as abstract
srittau 56a38a0
Add .. versionadded
srittau f2c331b
Added slashes to documented signatures
srittau 6764b6a
Fix overindentation
srittau 022acaa
Fix documentation of Reader.__iter__()
srittau b86073d
Remove the @runtime_checkable flags
srittau 65eb040
Merge branch 'main' into typing-readable-writable
srittau 2b9159d
Merge branch 'main' into typing-readable-writable
srittau 1f42b21
Remove Reader.__iter__() and readline()
srittau 0325f5a
Move protocols to io
srittau 632511a
Update whatsnew
srittau 3b384f9
Update NEWS file
srittau 5bdb4cc
Fix abstractmethod import
srittau 35dcaf4
Fix runtime_checkable link in docs
srittau 5584a57
Add Reader and Writer to proto allowlist
srittau af81301
Import Reader and Writer into _pyio
srittau 5a8b915
Import _collections_abc dynamically
srittau b1593fa
Merge branch 'main' into typing-readable-writable
srittau 577b893
Use metaclass instead of deriving from `ABC`
srittau cedfa42
Use __class_getitem__ instead of making the class generic
srittau a0b9e47
Remove type annotations
srittau 53a2250
Move import back to top level
srittau 03aa3a2
Merge branch 'main' into typing-readable-writable
srittau ca72c19
Fix doc reference to decorator
srittau 3b5975e
Fix references in docs
srittau 96080fe
Split signature
srittau 3723370
Document that Reader and Writer are generic
srittau 76003a8
Add tests
srittau 43e23f0
Add missing import
srittau c644770
Doc fixes
srittau bfab2fd
Merge branch 'main' into typing-readable-writable
srittau File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Added slashes to documented signatures
- Loading branch information
commit f2c331b2103f014b72bcce386383ba19e901b581
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.