René's URL Explorer Experiment


Title: BinaryIO does not have peek method · Issue #3951 · python/typeshed · GitHub

Open Graph Title: BinaryIO does not have peek method · Issue #3951 · python/typeshed

X Title: BinaryIO does not have peek method · Issue #3951 · python/typeshed

Description: When opening a file with binary mode, typing.BinaryIO is inferred. This type should have the https://docs.python.org/3/library/io.html#io.BufferedReader.peek method. It looks like this is known, judging by the TODO on this line in the ty...

Open Graph Description: When opening a file with binary mode, typing.BinaryIO is inferred. This type should have the https://docs.python.org/3/library/io.html#io.BufferedReader.peek method. It looks like this is known, ju...

X Description: When opening a file with binary mode, typing.BinaryIO is inferred. This type should have the https://docs.python.org/3/library/io.html#io.BufferedReader.peek method. It looks like this is known, ju...

Opengraph URL: https://github.com/python/typeshed/issues/3951

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"BinaryIO does not have peek method","articleBody":"When opening a file with binary mode, `typing.BinaryIO` is inferred.\r\nThis type should have the [https://docs.python.org/3/library/io.html#io.BufferedReader.peek](`peek`) method.\r\nIt looks like this is known, judging by the TODO on this line in the `typing.pyi` stub: \r\nhttps://github.com/python/typeshed/blob/bc90043e546f3d242e0f2a276194d77ba9811781/stdlib/3/typing.pyi#L509\r\n(There are also other `TODO`s there for BinaryIO - if those should be added, I could of course do those in the same change if that's not a problem.)\r\n\r\nA reproducible example:\r\n```python\r\nwith open(\"some-file\", 'rb') as f:\r\n    f.peek()\r\n```\r\n\r\nRunning mypy on this results in `error: \"BinaryIO\" has no attribute \"peek\"`.\r\n\r\nThis issue has also [been reported earlier in mypy](https://github.com/python/mypy/issues/8433).\r\n\r\nI'd be glad to submit a PR for this. Is it as simple as adding `peek` to `BinaryIO` in `typing.pyi`? Or should there also be tests for these changes?","author":{"url":"https://github.com/vegarsti","@type":"Person","name":"vegarsti"},"datePublished":"2020-04-29T06:42:44Z","url":"https://github.com/python/typeshed/issues/3951"}

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:f3abfb96-28df-b9de-21f6-96594a4dad66
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id81D8:15E5F9:1F31C38:2A62A91:6B001A93
html-safe-nonce15612e4514ca429b95ad6e8f8f9edece9e3ef6c7e86eaa65e24394853d5bb55e
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MUQ4OjE1RTVGOToxRjMxQzM4OjJBNjJBOTE6NkIwMDFBOTMiLCJ2aXNpdG9yX2lkIjoiNzY2MDAwNzU1OTI2ODQwNzk1NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacd86428431973a8297660ff8438e3e7a7be51e03c2f68416cb8912727e6051ca5
hovercard-subject-tagissue:608816812
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/typeshed/3951/issue_layout
twitter:imagehttps://opengraph.githubassets.com/de0854ae657650e0ede3fa920dc55fc2f46d05da44bcb7d949184773660187b9/python/typeshed/issues/3951
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/de0854ae657650e0ede3fa920dc55fc2f46d05da44bcb7d949184773660187b9/python/typeshed/issues/3951
og:image:altWhen opening a file with binary mode, typing.BinaryIO is inferred. This type should have the https://docs.python.org/3/library/io.html#io.BufferedReader.peek method. It looks like this is known, ju...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamevegarsti
hostnamegithub.com
expected-hostnamegithub.com
Nonea2dd2291b1b13cc9c06f27ec92fa3dbaf34116fc24c9347b8539db61884c59f4
turbo-cache-controlno-preview
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
release70121d4e855ee0bb7b75cf15d061d91f8863c0f8
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/python/typeshed/issues/3951#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Ftypeshed%2Fissues%2F3951
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%2Fissues%2F3951
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%2Ftypeshed
Reloadhttps://github.com/python/typeshed/issues/3951
Reloadhttps://github.com/python/typeshed/issues/3951
Reloadhttps://github.com/python/typeshed/issues/3951
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
New issuehttps://github.com/login?return_to=https://github.com/python/typeshed/issues/3951
New issuehttps://github.com/login?return_to=https://github.com/python/typeshed/issues/3951
#4146https://github.com/python/typeshed/pull/4146
BinaryIO does not have peek methodhttps://github.com/python/typeshed/issues/3951#top
#4146https://github.com/python/typeshed/pull/4146
topic: ioI/O related issueshttps://github.com/python/typeshed/issues?q=state%3Aopen%20label%3A%22topic%3A%20io%22
https://github.com/vegarsti
vegarstihttps://github.com/vegarsti
on Apr 29, 2020https://github.com/python/typeshed/issues/3951#issue-608816812
https://docs.python.org/3/library/io.html#io.BufferedReader.peekhttps://github.com/python/typeshed/issues/%60peek%60
typeshed/stdlib/3/typing.pyihttps://github.com/python/typeshed/blob/bc90043e546f3d242e0f2a276194d77ba9811781/stdlib/3/typing.pyi#L509
bc90043https://github.com/python/typeshed/commit/bc90043e546f3d242e0f2a276194d77ba9811781
been reported earlier in mypyhttps://github.com/python/mypy/issues/8433
https://github.com/JelleZijlstra
JelleZijlstrahttps://github.com/JelleZijlstra
on Apr 30, 2020https://github.com/python/typeshed/issues/3951#issuecomment-621612888
https://github.com/vegarsti
vegarstihttps://github.com/vegarsti
on Apr 30, 2020https://github.com/python/typeshed/issues/3951#issuecomment-621625058
https://github.com/vegarsti
vegarstihttps://github.com/vegarsti
on Apr 30, 2020https://github.com/python/typeshed/issues/3951#issuecomment-621642872
@JelleZijlstrahttps://github.com/JelleZijlstra
opened a PRhttps://github.com/python/typeshed/pull/3957
https://github.com/srittau
srittauhttps://github.com/srittau
on Apr 30, 2020https://github.com/python/typeshed/issues/3951#issuecomment-621747235
https://github.com/JelleZijlstra
JelleZijlstrahttps://github.com/JelleZijlstra
on May 28, 2020https://github.com/python/typeshed/issues/3951#issuecomment-635091096
#3371https://github.com/python/typeshed/pull/3371
#4082https://github.com/python/typeshed/pull/4082
https://github.com/vegarsti
vegarstihttps://github.com/vegarsti
on May 28, 2020https://github.com/python/typeshed/issues/3951#issuecomment-635179124
srittauhttps://github.com/srittau
topic: ioI/O related issueshttps://github.com/python/typeshed/issues?q=state%3Aopen%20label%3A%22topic%3A%20io%22
on May 28, 2020https://github.com/python/typeshed/issues/3951#event-3382481495
https://github.com/JelleZijlstra
JelleZijlstrahttps://github.com/JelleZijlstra
on May 30, 2020https://github.com/python/typeshed/issues/3951#issuecomment-636259265
https://github.com/python/cpython/blob/master/Modules/_io/_iomodule.c#L231https://github.com/python/cpython/blob/master/Modules/_io/_iomodule.c#L231
JelleZijlstrahttps://github.com/JelleZijlstra
on May 30, 2020https://github.com/python/typeshed/issues/3951#event-3389313263
make io classes inherit from typing IO classeshttps://github.com/JelleZijlstra/typeshed/commit/648e22e257f8f7470560af98e26bee2dd04e9773
648e22ehttps://github.com/JelleZijlstra/typeshed/commit/648e22e257f8f7470560af98e26bee2dd04e9773
make io classes inherit from typing IO classeshttps://github.com/JelleZijlstra/typeshed/commit/2ff071dc8092dc8349ac24a2ab6723cc44102e40
2ff071dhttps://github.com/JelleZijlstra/typeshed/commit/2ff071dc8092dc8349ac24a2ab6723cc44102e40
open: introduce concrete return typeshttps://github.com/JelleZijlstra/typeshed/commit/2c55cc7beccd855665739632387d879b2ff3c582
2c55cc7https://github.com/JelleZijlstra/typeshed/commit/2c55cc7beccd855665739632387d879b2ff3c582
open: introduce concrete return typeshttps://github.com/JelleZijlstra/typeshed/commit/4bec700a8553f14e4774adcdabe34a2c416231b9
4bec700https://github.com/JelleZijlstra/typeshed/commit/4bec700a8553f14e4774adcdabe34a2c416231b9
make io classes inherit from typing IO classes (#4145)https://github.com/python/typeshed/commit/3058bec873ef8b2b5630df36c4cbea0e3734dc5f
#4145https://github.com/python/typeshed/pull/4145
3058bechttps://github.com/python/typeshed/commit/3058bec873ef8b2b5630df36c4cbea0e3734dc5f
srittauhttps://github.com/srittau
completedhttps://github.com/python/typeshed/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#4146https://github.com/python/typeshed/pull/4146
on May 31, 2020https://github.com/python/typeshed/issues/3951#event-3391046305
srittauhttps://github.com/srittau
on May 31, 2020https://github.com/python/typeshed/issues/3951#event-3391046320
open: introduce concrete return types (#4146)https://github.com/python/typeshed/commit/adeda24fce2c407f6e523d14e763c98728f9f957
#4146https://github.com/python/typeshed/pull/4146
adeda24https://github.com/python/typeshed/commit/adeda24fce2c407f6e523d14e763c98728f9f957
vishalkuohttps://github.com/vishalkuo
on Jun 26, 2020https://github.com/python/typeshed/issues/3951#event-3487539001
make io classes inherit from typing IO classes (python#4145)https://github.com/vishalkuo/typeshed/commit/da0a29cec049f790c2f8e3cf3c44d796d1ac115a
python#4145https://github.com/python/typeshed/pull/4145
da0a29chttps://github.com/vishalkuo/typeshed/commit/da0a29cec049f790c2f8e3cf3c44d796d1ac115a
open: introduce concrete return types (python#4146)https://github.com/vishalkuo/typeshed/commit/dd3bd3a49d086869a224b71e21693c1d004a6261
python#4146https://github.com/python/typeshed/pull/4146
dd3bd3ahttps://github.com/vishalkuo/typeshed/commit/dd3bd3a49d086869a224b71e21693c1d004a6261
Sign up for freehttps://github.com/signup?return_to=https://github.com/python/typeshed/issues/3951
Sign in to commenthttps://github.com/login?return_to=https://github.com/python/typeshed/issues/3951
topic: ioI/O related issueshttps://github.com/python/typeshed/issues?q=state%3Aopen%20label%3A%22topic%3A%20io%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.