René's URL Explorer Experiment


Title: Add typing.Reader and typing.Writer · Issue #564 · python/typing · GitHub

Open Graph Title: Add typing.Reader and typing.Writer · Issue #564 · python/typing

X Title: Add typing.Reader and typing.Writer · Issue #564 · python/typing

Description: I recently stumbled at a TODO in typeshed that proposes to split IO[AnyStr] into smaller pieces. I think it is a good idea and propose to add two protocols: class Reader(Protocol[AnyStr]): def read(self, n: int = ...) -> AnyStr: ... def ...

Open Graph Description: I recently stumbled at a TODO in typeshed that proposes to split IO[AnyStr] into smaller pieces. I think it is a good idea and propose to add two protocols: class Reader(Protocol[AnyStr]): def read...

X Description: I recently stumbled at a TODO in typeshed that proposes to split IO[AnyStr] into smaller pieces. I think it is a good idea and propose to add two protocols: class Reader(Protocol[AnyStr]): def read...

Opengraph URL: https://github.com/python/typing/issues/564

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Add typing.Reader and typing.Writer","articleBody":"I recently stumbled at a TODO in typeshed that proposes to split `IO[AnyStr]` into smaller pieces. I think it is a good idea and propose to add two protocols:\r\n```python\r\nclass Reader(Protocol[AnyStr]):\r\n    def read(self, n: int = ...) -> AnyStr: ...\r\n    def readlines(self) -> List[AnyStr]: ...\r\n    def close(self) -> None: ...\r\n\r\nclass Writer(Protocol[AnyStr]):\r\n    def write(self, s: AnyStr) -> int: ...\r\n    def writelines(self, lines: List[AnyStr]) -> None: ...\r\n    def close(self) -> None: ...\r\n```\r\nThen `IO[AnyStr]` can subclass both, plus add some less often used methods (also `IO` should stay nominal). What do you think?","author":{"url":"https://github.com/ilevkivskyi","@type":"Person","name":"ilevkivskyi"},"datePublished":"2018-06-16T23:54:28Z","url":"https://github.com/python/typing/issues/564"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:52830214-cb99-f31e-dbd0-f5fb837b1305
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id9052:23FDF9:1F88DA2:2AF07BE:6B001F83
html-safe-nonce8e3ef5b2025e72bf2d686051550de476651d7df33ab22a3d316d6773b7cf81de
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MDUyOjIzRkRGOToxRjg4REEyOjJBRjA3QkU6NkIwMDFGODMiLCJ2aXNpdG9yX2lkIjoiMjc2MDY1Mzk5NDM4MzY0NjU5NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacf2d6a66f90f2fe1b4d00176f2e0855076ffcd0c7250152cd3d40f1afd5c1b987
hovercard-subject-tagissue:333023419
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/typing/564/issue_layout
twitter:imagehttps://opengraph.githubassets.com/0b6a8876201477d8656d7b5558d551d2f9ab72f18632b7c6082df574b5700a15/python/typing/issues/564
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/0b6a8876201477d8656d7b5558d551d2f9ab72f18632b7c6082df574b5700a15/python/typing/issues/564
og:image:altI recently stumbled at a TODO in typeshed that proposes to split IO[AnyStr] into smaller pieces. I think it is a good idea and propose to add two protocols: class Reader(Protocol[AnyStr]): def read...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameilevkivskyi
hostnamegithub.com
expected-hostnamegithub.com
None4eb4cba0d69f045374ac15de9666d22b0961e1d555cc3824f36b7734c00c78e0
turbo-cache-controlno-preview
go-importgithub.com/python/typing git https://github.com/python/typing.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id24604008
octolytics-dimension-repository_nwopython/typing
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id24604008
octolytics-dimension-repository_network_root_nwopython/typing
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release44c658b24abf00491fb7ae5f56d42c9f38cbeab2
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/python/typing/issues/564#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Ftyping%2Fissues%2F564
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Ftyping%2Fissues%2F564
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=python%2Ftyping
Reloadhttps://github.com/python/typing/issues/564
Reloadhttps://github.com/python/typing/issues/564
Reloadhttps://github.com/python/typing/issues/564
pythonhttps://github.com/python
typinghttps://github.com/python/typing
Codehttps://github.com/python/typing
Issues206 (206)https://github.com/python/typing/issues
Pull requests27 (27)https://github.com/python/typing/pulls
Discussionshttps://github.com/python/typing/discussions
Actionshttps://github.com/python/typing/actions
Security and qualityhttps://github.com/python/typing/security
Insightshttps://github.com/python/typing/insights
https://github.com/python/typing
New issuehttps://github.com/login?return_to=https://github.com/python/typing/issues/564
New issuehttps://github.com/login?return_to=https://github.com/python/typing/issues/564
Add typing.Reader and typing.Writerhttps://github.com/python/typing/issues/564#top
topic: featureDiscussions about new features for Python's type annotationshttps://github.com/python/typing/issues?q=state%3Aopen%20label%3A%22topic%3A%20feature%22
https://github.com/ilevkivskyi
ilevkivskyihttps://github.com/ilevkivskyi
on Jun 16, 2018https://github.com/python/typing/issues/564#issue-333023419
ilevkivskyihttps://github.com/ilevkivskyi
enhancementhttps://github.com/python/typing/issues?q=state%3Aopen%20label%3A%22enhancement%22
on Jun 16, 2018https://github.com/python/typing/issues/564#event-1684812552
https://github.com/JelleZijlstra
JelleZijlstrahttps://github.com/JelleZijlstra
on Jun 17, 2018https://github.com/python/typing/issues/564#issuecomment-397912838
https://github.com/gvanrossum
gvanrossumhttps://github.com/gvanrossum
on Jun 18, 2018https://github.com/python/typing/issues/564#issuecomment-397923461
https://github.com/srittau
srittauhttps://github.com/srittau
on Jun 18, 2018https://github.com/python/typing/issues/564#issuecomment-397944626
https://github.com/JukkaL
JukkaLhttps://github.com/JukkaL
on Jun 18, 2018https://github.com/python/typing/issues/564#issuecomment-397987177
srittauhttps://github.com/srittau
on Jun 28, 2018https://github.com/python/typing/issues/564#event-1706318341
Use protocols for shutils.copyfileobj()https://github.com/srittau/typeshed/commit/90fe2297ac161c3909e916cae82e72d4e593948d
90fe229https://github.com/srittau/typeshed/commit/90fe2297ac161c3909e916cae82e72d4e593948d
https://github.com/srittau
srittauhttps://github.com/srittau
on Jun 28, 2018https://github.com/python/typing/issues/564#issuecomment-401032878
https://github.com/ilevkivskyi
ilevkivskyihttps://github.com/ilevkivskyi
on Jun 28, 2018https://github.com/python/typing/issues/564#issuecomment-401038358
https://github.com/srittau
srittauhttps://github.com/srittau
on Jun 28, 2018https://github.com/python/typing/issues/564#issuecomment-401040066
@ilevkivskyihttps://github.com/ilevkivskyi
https://github.com/ilevkivskyi
ilevkivskyihttps://github.com/ilevkivskyi
on Jun 28, 2018https://github.com/python/typing/issues/564#issuecomment-401041117
JelleZijlstrahttps://github.com/JelleZijlstra
on Jun 28, 2018https://github.com/python/typing/issues/564#event-1706907314
Use protocols for shutils.copyfileobj() (#2291)https://github.com/python/typeshed/commit/187aaaced93ee936a861471644bae1a00d6dbea9
#2291https://github.com/python/typeshed/pull/2291
187aaachttps://github.com/python/typeshed/commit/187aaaced93ee936a861471644bae1a00d6dbea9
srittauhttps://github.com/srittau
on Aug 14, 2018https://github.com/python/typing/issues/564#event-1788270389
Improve annotations for json.load() and loads()https://github.com/srittau/typeshed/commit/420d6c36944474871d88ccd9c6f972614f91905b
420d6c3https://github.com/srittau/typeshed/commit/420d6c36944474871d88ccd9c6f972614f91905b
JelleZijlstrahttps://github.com/JelleZijlstra
on Aug 14, 2018https://github.com/python/typing/issues/564#event-1788398640
Improve annotations for json.load() and loads() (#2382)https://github.com/python/typeshed/commit/7ad682b0ae8ca1c3a43838f8cea2a95aae676ffc
#2382https://github.com/python/typeshed/pull/2382
7ad682bhttps://github.com/python/typeshed/commit/7ad682b0ae8ca1c3a43838f8cea2a95aae676ffc
yedpodtrzitkohttps://github.com/yedpodtrzitko
on Jan 23, 2019https://github.com/python/typing/issues/564#event-2090661017
Use protocols for shutils.copyfileobj() (python#2291)https://github.com/yedpodtrzitko/typeshed/commit/0def8a9e4068bf86d472cfb17dde40b51b766592
python#2291https://github.com/python/typeshed/pull/2291
0def8a9https://github.com/yedpodtrzitko/typeshed/commit/0def8a9e4068bf86d472cfb17dde40b51b766592
Improve annotations for json.load() and loads() (python#2382)https://github.com/yedpodtrzitko/typeshed/commit/3ff750c3f0b9fee4479510a452c3526544bee36f
python#2382https://github.com/python/typeshed/pull/2382
3ff750chttps://github.com/yedpodtrzitko/typeshed/commit/3ff750c3f0b9fee4479510a452c3526544bee36f
https://github.com/kkirsche
kkirschehttps://github.com/kkirsche
on May 31, 2021https://github.com/python/typing/issues/564#issuecomment-851466373
https://golang.org/pkg/io/https://golang.org/pkg/io/
https://docs.python.org/3/library/typing.html#typing.IOhttps://docs.python.org/3/library/typing.html#typing.IO
https://github.com/srittau
srittauhttps://github.com/srittau
on May 31, 2021https://github.com/python/typing/issues/564#issuecomment-851526733
_typeshed modulehttps://github.com/python/typeshed/blob/master/stdlib/_typeshed/__init__.pyi
#213https://github.com/python/typing/issues/213
srittauhttps://github.com/srittau
topic: featureDiscussions about new features for Python's type annotationshttps://github.com/python/typing/issues?q=state%3Aopen%20label%3A%22topic%3A%20feature%22
enhancementhttps://github.com/python/typing/issues?q=state%3Aopen%20label%3A%22enhancement%22
on Nov 4, 2021https://github.com/python/typing/issues/564#event-5567775055
Sign up for freehttps://github.com/signup?return_to=https://github.com/python/typing/issues/564
Sign in to commenthttps://github.com/login?return_to=https://github.com/python/typing/issues/564
topic: featureDiscussions about new features for Python's type annotationshttps://github.com/python/typing/issues?q=state%3Aopen%20label%3A%22topic%3A%20feature%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.