René's URL Explorer Experiment


Title: Cannot infer type argument 1 of "shutil.copyfileobj" with mypy 0.780 · Issue #4201 · python/typeshed · GitHub

Open Graph Title: Cannot infer type argument 1 of "shutil.copyfileobj" with mypy 0.780 · Issue #4201 · python/typeshed

X Title: Cannot infer type argument 1 of "shutil.copyfileobj" with mypy 0.780 · Issue #4201 · python/typeshed

Description: The following code used to pass mypy type check with mypy 0.770 but doesn't work for mypy 0.780 import shutil filename1 = '/foo/bar' filename2 = '/foo/baz' srcfp = open(filename1, 'rb') destfp = open(filename2, 'wb') shutil.copyfileobj(s...

Open Graph Description: The following code used to pass mypy type check with mypy 0.770 but doesn't work for mypy 0.780 import shutil filename1 = '/foo/bar' filename2 = '/foo/baz' srcfp = open(filename1, 'rb') destfp = op...

X Description: The following code used to pass mypy type check with mypy 0.770 but doesn't work for mypy 0.780 import shutil filename1 = '/foo/bar' filename2 = '/foo/baz' srcfp = open(filename...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":" Cannot infer type argument 1 of \"shutil.copyfileobj\" with mypy 0.780","articleBody":"The following code used to pass mypy type check with `mypy 0.770` but doesn't work for `mypy 0.780`\r\n\r\n```python\r\nimport shutil\r\n\r\nfilename1 = '/foo/bar'\r\nfilename2 = '/foo/baz'\r\n\r\nsrcfp =  open(filename1, 'rb')\r\ndestfp = open(filename2, 'wb')\r\n\r\nshutil.copyfileobj(srcfp, destfp)\r\n```\r\n\r\n**> mypy 0.770**\r\n```\r\n$ mypy --version\r\nmypy 0.770\r\n$  mypy scratch.py\r\nSuccess: no issues found in 1 source file\r\n```\r\n\r\n**> mypy 0.780**\r\n```\r\n$ mypy --version\r\nmypy 0.780\r\n\r\n$ scratch.py  \r\nscratch.py:9: error: Cannot infer type argument 1 of \"copyfileobj\"\r\n```\r\n\r\nDo let me know if this not a typeshed issue, but instead is a mypy issue.","author":{"url":"https://github.com/deveshks","@type":"Person","name":"deveshks"},"datePublished":"2020-06-07T20:38:10Z","url":"https://github.com/python/typeshed/issues/4201"}

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:db22593f-2410-fb55-bd47-c544554e2748
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idA91C:2B9B04:2F7546C:3ECC0DC:6B002B78
html-safe-nonce743d3923fc1f744af8875283d63819bdcb9891e103d7b87bfdb4d52c07224392
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBOTFDOjJCOUIwNDoyRjc1NDZDOjNFQ0MwREM6NkIwMDJCNzgiLCJ2aXNpdG9yX2lkIjoiMjg0MzY3ODE2MDM0NjY4ODM3NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmace35a51dae7614c8eb99357c37faab24f236acb98243f3e524607a277937421f4
hovercard-subject-tagissue:633742578
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/4201/issue_layout
twitter:imagehttps://opengraph.githubassets.com/76fa8a6377d0bbfa61d1f3860a7942f9f0801d1623d35cae398fde78ee7d7f9b/python/typeshed/issues/4201
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/76fa8a6377d0bbfa61d1f3860a7942f9f0801d1623d35cae398fde78ee7d7f9b/python/typeshed/issues/4201
og:image:altThe following code used to pass mypy type check with mypy 0.770 but doesn't work for mypy 0.780 import shutil filename1 = '/foo/bar' filename2 = '/foo/baz' srcfp = open(filename1, 'rb') destfp = op...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamedeveshks
hostnamegithub.com
expected-hostnamegithub.com
None7d0829bbde9e48b2486cb5dd6d147896eb01d32134627091f818958a935ef3f0
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
releasef3f3a43ca095cdea3abbb394112e971f9fdb94fa
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/python/typeshed/issues/4201#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Ftypeshed%2Fissues%2F4201
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%2F4201
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/4201
Reloadhttps://github.com/python/typeshed/issues/4201
Reloadhttps://github.com/python/typeshed/issues/4201
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/4201
New issuehttps://github.com/login?return_to=https://github.com/python/typeshed/issues/4201
#4203https://github.com/python/typeshed/pull/4203
Cannot infer type argument 1 of "shutil.copyfileobj" with mypy 0.780https://github.com/python/typeshed/issues/4201#top
#4203https://github.com/python/typeshed/pull/4203
https://github.com/deveshks
deveshkshttps://github.com/deveshks
on Jun 7, 2020https://github.com/python/typeshed/issues/4201#issue-633742578
https://github.com/hauntsaninja
hauntsaninjahttps://github.com/hauntsaninja
on Jun 7, 2020https://github.com/python/typeshed/issues/4201#issuecomment-640279696
https://github.com/deveshks
deveshkshttps://github.com/deveshks
on Jun 7, 2020https://github.com/python/typeshed/issues/4201#issuecomment-640279905
deveshkshttps://github.com/deveshks
completedhttps://github.com/python/typeshed/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Jun 7, 2020https://github.com/python/typeshed/issues/4201#event-3417218094
https://github.com/deveshks
deveshkshttps://github.com/deveshks
on Jun 8, 2020https://github.com/python/typeshed/issues/4201#issuecomment-640364401
deveshkshttps://github.com/deveshks
on Jun 8, 2020https://github.com/python/typeshed/issues/4201#event-3418045137
https://github.com/srittau
srittauhttps://github.com/srittau
on Jun 8, 2020https://github.com/python/typeshed/issues/4201#issuecomment-640485724
srittauhttps://github.com/srittau
on Jun 8, 2020https://github.com/python/typeshed/issues/4201#event-3419130248
Remove BinaryIO.write()https://github.com/srittau/typeshed/commit/3933b61945ddcbe03460cf1c545e13adf8528383
https://docs.github.com/articles/closing-issues-via-commit-messages
3933b61https://github.com/srittau/typeshed/commit/3933b61945ddcbe03460cf1c545e13adf8528383
https://github.com/deveshks
deveshkshttps://github.com/deveshks
on Jun 8, 2020https://github.com/python/typeshed/issues/4201#issuecomment-640494428
https://github.com/srittau
srittauhttps://github.com/srittau
on Jun 8, 2020https://github.com/python/typeshed/issues/4201#issuecomment-640494883
JelleZijlstrahttps://github.com/JelleZijlstra
completedhttps://github.com/python/typeshed/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#4203https://github.com/python/typeshed/pull/4203
on Jun 8, 2020https://github.com/python/typeshed/issues/4201#event-3421939393
JelleZijlstrahttps://github.com/JelleZijlstra
on Jun 8, 2020https://github.com/python/typeshed/issues/4201#event-3421939492
Remove BinaryIO.write() (#4203)https://github.com/python/typeshed/commit/206bff44eda65354275c61dfb8d61d3cae289a38
#4203https://github.com/python/typeshed/pull/4203
https://docs.github.com/articles/closing-issues-via-commit-messages
206bff4https://github.com/python/typeshed/commit/206bff44eda65354275c61dfb8d61d3cae289a38
vishalkuohttps://github.com/vishalkuo
on Jun 26, 2020https://github.com/python/typeshed/issues/4201#event-3487539181
Remove BinaryIO.write() (python#4203)https://github.com/vishalkuo/typeshed/commit/f529260d0ef2f12122577aafd91f2ef2383618d3
python#4203https://github.com/python/typeshed/pull/4203
https://docs.github.com/articles/closing-issues-via-commit-messages
f529260https://github.com/vishalkuo/typeshed/commit/f529260d0ef2f12122577aafd91f2ef2383618d3
https://github.com/pmhahn
pmhahnhttps://github.com/pmhahn
on May 11, 2023https://github.com/python/typeshed/issues/4201#issuecomment-1543788849
https://github.com/AlexWaygood
AlexWaygoodhttps://github.com/AlexWaygood
on May 11, 2023https://github.com/python/typeshed/issues/4201#issuecomment-1543824406
@pmhahnhttps://github.com/pmhahn
python/mypy#15031https://github.com/python/mypy/issues/15031
python/mypy#14943https://github.com/python/mypy/issues/14943
https://github.com/AlexWaygood
AlexWaygoodhttps://github.com/AlexWaygood
on May 11, 2023https://github.com/python/typeshed/issues/4201#issuecomment-1543827673
python/mypy#14975https://github.com/python/mypy/pull/14975
Sign up for freehttps://github.com/signup?return_to=https://github.com/python/typeshed/issues/4201
Sign in to commenthttps://github.com/login?return_to=https://github.com/python/typeshed/issues/4201
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.