René's URL Explorer Experiment


Title: open: introduce concrete return types by JelleZijlstra · Pull Request #4146 · python/typeshed · GitHub

Open Graph Title: open: introduce concrete return types by JelleZijlstra · Pull Request #4146 · python/typeshed

X Title: open: introduce concrete return types by JelleZijlstra · Pull Request #4146 · python/typeshed

Description: Collection of library stubs for Python, with static types - open: introduce concrete return types by JelleZijlstra · Pull Request #4146 · python/typeshed

Open Graph Description: Fixes #3951. We use the values of the "mode" and "buffering" arguments to figure out the concrete type open() will return at runtime. (Compare the CPython code in https://github...

X Description: Fixes #3951. We use the values of the "mode" and "buffering" arguments to figure out the concrete type open() will return at runtime. (Compare the CPython code i...

Opengraph URL: https://github.com/python/typeshed/pull/4146

X: @github

direct link

Domain: github.com

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/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:41d2575f-ee9e-292a-db22-a51f7d914f5a
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idAE38:1F3799:294BA3C:3628A94:6B000B1E
html-safe-nonce6d2b337b06a5f49e321c005d465b69947b867db7d098dbac6b3fa9c44d3f6b5f
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRTM4OjFGMzc5OToyOTRCQTNDOjM2MjhBOTQ6NkIwMDBCMUUiLCJ2aXNpdG9yX2lkIjoiODA0NDI2NTE1MzUyNjUwMDEyNiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac8d1fbb9bbcfbb6e864473b605fa96b8ff6530e152f6d5478ce0095ea43e26e6b
hovercard-subject-tagpull_request:425414001
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/python/typeshed/4146/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/4d2cf3891d9b325c78ea81780c8d7fcb18bdc2912d212d7a9666e7b020d3b653/python/typeshed/pull/4146
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/4d2cf3891d9b325c78ea81780c8d7fcb18bdc2912d212d7a9666e7b020d3b653/python/typeshed/pull/4146
og:image:altFixes #3951. We use the values of the "mode" and "buffering" arguments to figure out the concrete type open() will return at runtime. (Compare the CPython code in https://github...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameJelleZijlstra
hostnamegithub.com
expected-hostnamegithub.com
None0a0d8686a27478df474dd7415776a7a080cde8838b3cd92ea7601187572e5729
turbo-cache-controlno-cache
go-importgithub.com/python/typeshed git https://github.com/python/typeshed.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id31696383
octolytics-dimension-repository_nwopython/typeshed
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id31696383
octolytics-dimension-repository_network_root_nwopython/typeshed
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
release16a11879678aaf97e2a42c33ee70830aa084fa37
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/python/typeshed/pull/4146#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Ftypeshed%2Fpull%2F4146
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%2Ftypeshed%2Fpull%2F4146
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%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=python%2Ftypeshed
Reloadhttps://github.com/python/typeshed/pull/4146
Reloadhttps://github.com/python/typeshed/pull/4146
Reloadhttps://github.com/python/typeshed/pull/4146
pythonhttps://github.com/python
typeshedhttps://github.com/python/typeshed
Codehttps://github.com/python/typeshed
Issues196 (196)https://github.com/python/typeshed/issues
Pull requests251 (251)https://github.com/python/typeshed/pulls
Actionshttps://github.com/python/typeshed/actions
Security and qualityhttps://github.com/python/typeshed/security
Insightshttps://github.com/python/typeshed/insights
https://github.com/python/typeshed
srittauhttps://github.com/srittau
python:masterhttps://github.com/python/typeshed/tree/master
JelleZijlstra:openrethttps://github.com/JelleZijlstra/typeshed/tree/openret
Conversationhttps://github.com/python/typeshed/pull/4146
Commits5 (5)https://github.com/python/typeshed/pull/4146/commits
Checkshttps://github.com/python/typeshed/pull/4146/checks
Files changedhttps://github.com/python/typeshed/pull/4146/files
open: introduce concrete return types https://github.com/python/typeshed/pull/4146#top
srittauhttps://github.com/srittau
python:masterhttps://github.com/python/typeshed/tree/master
JelleZijlstra:openrethttps://github.com/JelleZijlstra/typeshed/tree/openret
https://github.com/JelleZijlstra
JelleZijlstrahttps://github.com/JelleZijlstra
May 30, 2020https://github.com/python/typeshed/pull/4146#issue-627651465
#3951https://github.com/python/typeshed/issues/3951
https://github.com/python/cpython/blob/master/Modules/_io/_iomodule.c#L231https://github.com/python/cpython/blob/master/Modules/_io/_iomodule.c#L231
#4145https://github.com/python/typeshed/pull/4145
Please reload this pagehttps://github.com/python/typeshed/pull/4146
JelleZijlstrahttps://github.com/JelleZijlstra
May 29, 2020 19:54https://github.com/python/typeshed/pull/4146#commits-pushed-2ff071d
https://github.com/JelleZijlstra
make io classes inherit from typing IO classeshttps://github.com/python/typeshed/pull/4146/commits/2ff071dc8092dc8349ac24a2ab6723cc44102e40
2ff071dhttps://github.com/python/typeshed/pull/4146/commits/2ff071dc8092dc8349ac24a2ab6723cc44102e40
python#3951https://github.com/python/typeshed/issues/3951
https://github.com/JelleZijlstra
open: introduce concrete return typeshttps://github.com/python/typeshed/pull/4146/commits/4bec700a8553f14e4774adcdabe34a2c416231b9
4bec700https://github.com/python/typeshed/pull/4146/commits/4bec700a8553f14e4774adcdabe34a2c416231b9
python#3951https://github.com/python/typeshed/issues/3951
https://github.com/python/cpython/blob/master/Modules/_io/_iomodule.c#L231https://github.com/python/cpython/blob/master/Modules/_io/_iomodule.c#L231
python#4145https://github.com/python/typeshed/pull/4145
https://github.com/JelleZijlstra
fix Python 2https://github.com/python/typeshed/pull/4146/commits/6a769b48b9902a05f20e4b6cc8e93d2a491b4e44
6a769b4https://github.com/python/typeshed/pull/4146/commits/6a769b48b9902a05f20e4b6cc8e93d2a491b4e44
https://github.com/srittau
srittauhttps://github.com/srittau
May 30, 2020 https://github.com/python/typeshed/pull/4146#pullrequestreview-421400661
View reviewed changes https://github.com/python/typeshed/pull/4146/files/6a769b48b9902a05f20e4b6cc8e93d2a491b4e44
stdlib/2/__builtin__.pyihttps://github.com/python/typeshed/pull/4146/files/6a769b48b9902a05f20e4b6cc8e93d2a491b4e44#diff-1d779f57c4a031bf6683d708babcda1f1e1bc38fc30e63e87c3451827a870a30
srittauhttps://github.com/srittau
May 30, 2020https://github.com/python/typeshed/pull/4146#discussion_r432836366
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/typeshed/pull/4146
JelleZijlstrahttps://github.com/JelleZijlstra
May 30, 2020https://github.com/python/typeshed/pull/4146#discussion_r432843242
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/typeshed/pull/4146
https://github.com/srittau
srittauhttps://github.com/srittau
topic: io https://github.com/python/typeshed/issues?q=state%3Aopen%20label%3A%22topic%3A%20io%22
May 30, 2020https://github.com/python/typeshed/pull/4146#event-3389675502
JelleZijlstrahttps://github.com/JelleZijlstra
May 30, 2020 06:55https://github.com/python/typeshed/pull/4146#commits-pushed-208546c
https://github.com/JelleZijlstra
merge some overloadshttps://github.com/python/typeshed/pull/4146/commits/208546c0a4b5b5f018f69f4978279a5cd2d9c7ef
208546chttps://github.com/python/typeshed/pull/4146/commits/208546c0a4b5b5f018f69f4978279a5cd2d9c7ef
https://github.com/JelleZijlstra
Merge remote-tracking branch 'upstream/master' into openrethttps://github.com/python/typeshed/pull/4146/commits/cc475e6d76cbef5a124052902160fd0b7df9e713
cc475e6https://github.com/python/typeshed/pull/4146/commits/cc475e6d76cbef5a124052902160fd0b7df9e713
https://github.com/srittau
srittauhttps://github.com/srittau
May 31, 2020 https://github.com/python/typeshed/pull/4146#pullrequestreview-421534622
View reviewed changes https://github.com/python/typeshed/pull/4146/files/cc475e6d76cbef5a124052902160fd0b7df9e713
srittauhttps://github.com/srittau
https://github.com/python/typeshed/pull/4146#pullrequestreview-421534622
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/typeshed/pull/4146
https://github.com/srittau
srittauhttps://github.com/srittau
adeda24https://github.com/python/typeshed/commit/adeda24fce2c407f6e523d14e763c98728f9f957
May 31, 2020https://github.com/python/typeshed/pull/4146#event-3391046292
https://github.com/JelleZijlstra
JelleZijlstrahttps://github.com/JelleZijlstra
June 1, 2020 00:14https://github.com/python/typeshed/pull/4146#event-3391115521
https://github.com/hauntsaninja
hauntsaninjahttps://github.com/hauntsaninja
Jun 11, 2020 https://github.com/python/typeshed/pull/4146#ref-issue-225379666
open() returns IO[str] instead of io.TextIOWrapper #1229 https://github.com/python/typeshed/issues/1229
vishalkuohttps://github.com/vishalkuo
Jun 26, 2020 https://github.com/python/typeshed/pull/4146#ref-commit-dd3bd3a
https://github.com/JelleZijlstra
open: introduce concrete return types (https://github.com/vishalkuo/typeshed/commit/dd3bd3a49d086869a224b71e21693c1d004a6261
python#4146https://github.com/python/typeshed/pull/4146
)https://github.com/vishalkuo/typeshed/commit/dd3bd3a49d086869a224b71e21693c1d004a6261
dd3bd3ahttps://github.com/vishalkuo/typeshed/commit/dd3bd3a49d086869a224b71e21693c1d004a6261
python#3951https://github.com/python/typeshed/issues/3951
python#3951https://github.com/python/typeshed/issues/3951
https://github.com/python/cpython/blob/master/Modules/_io/_iomodule.c#L231https://github.com/python/cpython/blob/master/Modules/_io/_iomodule.c#L231
https://github.com/stephenmcgruer
stephenmcgruerhttps://github.com/stephenmcgruer
Aug 17, 2020 https://github.com/python/typeshed/pull/4146#ref-pullrequest-654780694
[Taskcluster] Make lint create a GitHub Checks output file web-platform-tests/wpt#24556 https://github.com/web-platform-tests/wpt/pull/24556
https://github.com/micimize
micimizehttps://github.com/micimize
Oct 11, 2020 https://github.com/python/typeshed/pull/4146#ref-issue-376793487
'gzip.GzipFile' appears to be missing 'IO[...]' #2580 https://github.com/python/typeshed/issues/2580
Hexcleshttps://github.com/Hexcles
Oct 13, 2020 https://github.com/python/typeshed/pull/4146#ref-commit-e86d3a3
https://github.com/Hexcles
Remove a hack for mypy<0.790https://github.com/web-platform-tests/wpt/commit/e86d3a3e9cfb97d7908dd6eda1146d34ee0f1696
e86d3a3https://github.com/web-platform-tests/wpt/commit/e86d3a3e9cfb97d7908dd6eda1146d34ee0f1696
#26066https://github.com/web-platform-tests/wpt/pull/26066
python/typeshed#4146https://github.com/python/typeshed/pull/4146
Hexcleshttps://github.com/Hexcles
Oct 13, 2020 https://github.com/python/typeshed/pull/4146#ref-commit-81988a4
https://github.com/Hexcles
Remove a hack for mypy<0.790https://github.com/web-platform-tests/wpt/commit/81988a4637c97fa64d3347220e89dfa255e78dec
81988a4https://github.com/web-platform-tests/wpt/commit/81988a4637c97fa64d3347220e89dfa255e78dec
#26066https://github.com/web-platform-tests/wpt/pull/26066
python/typeshed#4146https://github.com/python/typeshed/pull/4146
Hexcleshttps://github.com/Hexcles
Oct 14, 2020 https://github.com/python/typeshed/pull/4146#ref-commit-e8efb0e
https://github.com/Hexcles
Remove a hack for mypy<0.790https://github.com/web-platform-tests/wpt/commit/e8efb0eb0019077dacbb00dc4de1da4bd0ddc1ee
e8efb0ehttps://github.com/web-platform-tests/wpt/commit/e8efb0eb0019077dacbb00dc4de1da4bd0ddc1ee
#26066https://github.com/web-platform-tests/wpt/pull/26066
python/typeshed#4146https://github.com/python/typeshed/pull/4146
Hexcleshttps://github.com/Hexcles
Oct 14, 2020 https://github.com/python/typeshed/pull/4146#ref-commit-ec69ed2
https://github.com/Hexcles
Remove a hack for mypy<0.790https://github.com/web-platform-tests/wpt/commit/ec69ed2d738d1ef2285ee1a42d96509fa042acbe
ec69ed2https://github.com/web-platform-tests/wpt/commit/ec69ed2d738d1ef2285ee1a42d96509fa042acbe
#26066https://github.com/web-platform-tests/wpt/pull/26066
python/typeshed#4146https://github.com/python/typeshed/pull/4146
stephenmcgruerhttps://github.com/stephenmcgruer
Oct 14, 2020 https://github.com/python/typeshed/pull/4146#ref-commit-fdc3a46
https://github.com/Hexcles
Remove a hack for mypy<0.790 (https://github.com/web-platform-tests/wpt/commit/fdc3a462396df8af5d2d8f2e5277e98817ffbb9d
#26102https://github.com/web-platform-tests/wpt/pull/26102
)https://github.com/web-platform-tests/wpt/commit/fdc3a462396df8af5d2d8f2e5277e98817ffbb9d
fdc3a46https://github.com/web-platform-tests/wpt/commit/fdc3a462396df8af5d2d8f2e5277e98817ffbb9d
#26066https://github.com/web-platform-tests/wpt/pull/26066
python/typeshed#4146https://github.com/python/typeshed/pull/4146
moz-v2v-ghhttps://github.com/moz-v2v-gh
Oct 21, 2020 https://github.com/python/typeshed/pull/4146#ref-commit-52ff818
https://github.com/Hexcles
https://github.com/moz-wptsync-bot
Bug 1671356 [wpt PR 26102] - Remove a hack for mypy<0.790, a=testonlyhttps://github.com/mozilla/gecko-dev/commit/52ff8182d637e9d1ccf79fbc0e4acd9314f1072c
52ff818https://github.com/mozilla/gecko-dev/commit/52ff8182d637e9d1ccf79fbc0e4acd9314f1072c
python/typeshed#4146https://github.com/python/typeshed/pull/4146
jamienicolhttps://github.com/jamienicol
Oct 24, 2020 https://github.com/python/typeshed/pull/4146#ref-commit-b97d875
https://github.com/Hexcles
https://github.com/moz-wptsync-bot
Bug 1671356 [wpt PR 26102] - Remove a hack for mypy<0.790, a=testonlyhttps://github.com/jamienicol/gecko/commit/b97d8757488f4225f5a5eb52b2287da2f1613155
b97d875https://github.com/jamienicol/gecko/commit/b97d8757488f4225f5a5eb52b2287da2f1613155
python/typeshed#4146https://github.com/python/typeshed/pull/4146
https://github.com/aucampia
aucampiahttps://github.com/aucampia
Sep 21, 2021 https://github.com/python/typeshed/pull/4146#ref-issue-1003380924
TextIOWrapper stub does not match stdlib documentation #6061 https://github.com/python/typeshed/issues/6061
bhearsumhttps://github.com/bhearsum
May 1, 2025 https://github.com/python/typeshed/pull/4146#ref-commit-811c709
https://github.com/Hexcles
https://github.com/moz-wptsync-bot
Bug 1671356 [wpt PR 26102] - Remove a hack for mypy<0.790, a=testonlyhttps://github.com/mozilla-releng/staging-firefox/commit/811c709d390bf3c4375ccfab6fb705f5d7360184
811c709https://github.com/mozilla-releng/staging-firefox/commit/811c709d390bf3c4375ccfab6fb705f5d7360184
python/typeshed#4146https://github.com/python/typeshed/pull/4146
https://github.co/hiddenchars
https://github.com/python/typeshed/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Ftypeshed%2Fpull%2F4146
https://github.com/srittau
srittau https://github.com/srittau
https://github.com/python/typeshed/pull/4146/files/cc475e6d76cbef5a124052902160fd0b7df9e713
Please reload this pagehttps://github.com/python/typeshed/pull/4146
topic: io https://github.com/python/typeshed/issues?q=state%3Aopen%20label%3A%22topic%3A%20io%22
BinaryIO does not have peek method https://github.com/python/typeshed/issues/3951
Please reload this pagehttps://github.com/python/typeshed/pull/4146
https://github.com/JelleZijlstra
https://github.com/srittau
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.