| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:8bea2018-0561-1340-21ae-11b421bbf192 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | A902:DCDA8:3006067:3F52DAA:6B002699 |
| html-safe-nonce | 4591bb98bce19a5dfbb79c42f247f5465e3d8fe93a6094173c32db7d717107ca |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBOTAyOkRDREE4OjMwMDYwNjc6M0Y1MkRBQTo2QjAwMjY5OSIsInZpc2l0b3JfaWQiOiI3NDEwMzUxODk1MDE0ODExMjg5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | d3d7a35af3df65bb93049154a424b7f0e21142740d74666337f0841c0ec60ca2 |
| hovercard-subject-tag | pull_request:328625219 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///pull_requests/show/files |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/python/typeshed/pull/3371/files |
| twitter:image | https://avatars.githubusercontent.com/u/10098207?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/10098207?s=400&v=4 |
| og:image:alt | This PR adds overloaded signatures for {builtin,pathlib.Path,bz2,gwip,lzma}.open() functions, using Literal modes to determine the return types.
mypy tests pass after updating the open and Path.ope... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4eb4cba0d69f045374ac15de9666d22b0961e1d555cc3824f36b7734c00c78e0 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/python/typeshed git https://github.com/python/typeshed.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 31696383 |
| octolytics-dimension-repository_nwo | python/typeshed |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 31696383 |
| octolytics-dimension-repository_network_root_nwo | python/typeshed |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 44c658b24abf00491fb7ae5f56d42c9f38cbeab2 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/python/typeshed/pull/3371/files#start-of-content |
| https://github.com/ |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Ftypeshed%2Fpull%2F3371%2Ffiles |
| GitHubRepository hosting, code review, and collaboration | https://github.com/platform |
| CopilotAI coding agent for tasks, projects, and automated work | https://github.com/features/copilot |
| ActionsCI/CD and automation | https://github.com/features/actions |
| Code QualityQuality analysis, fixes, and enforcement | https://github.com/features/code-quality |
| CodespacesCloud development environments | https://github.com/features/codespaces |
| Code SecurityVulnerability detection and remediation | https://github.com/security/advanced-security/code-security |
| Secret ProtectionSecret scanning and leak prevention | https://github.com/security/advanced-security/secret-protection |
| All Features | https://github.com/features |
| Documentation | https://docs.github.com/en |
| Training | https://learn.github.com/skills |
| Certifications | https://learn.github.com/credentials |
| Build with Copilot | https://github.com/features/ai |
| Customize Copilot | https://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview |
| Integrations | https://github.com/marketplace |
| Trending repos | https://github.com/trending |
| GitHub Sponsors | https://github.com/open-source/sponsors |
| Developer articles | https://github.com/resources/articles |
| ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place. | https://github.blog/changelog/ |
| Enterprises | https://github.com/enterprise |
| Team | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| See all industries | https://github.com/solutions/industry |
| Why GitHub | https://github.com/why-github |
| Customer Stories | https://github.com/customer-stories |
| Business insights | https://github.com/solutions/executive-insights |
| Trust Center | https://github.com/trust-center |
| GitHub Advanced SecurityEnterprise-grade code security | https://github.com/security/advanced-security |
| Copilot for businessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/enterprise/premium-support |
| Documentation | https://docs.github.com/en |
| Resource center | https://github.com/resources |
| Blog | https://github.blog/ |
| Events & webinars | https://github.com/resources/events |
| Community Forum | https://github.com/orgs/community/discussions |
| Customer Stories | https://github.com/customer-stories |
| Integrations | https://github.com/marketplace |
| Customer support | https://help.github.com/ |
| Training | https://learn.github.com/skills |
| GitHub Status | https://www.githubstatus.com/ |
| About | https://github.com/about |
| Partners | https://github.com/partners |
| Changelog | https://github.blog/changelog/ |
| GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub. | https://githubuniverse.com/ |
| Pricing | https://github.com/pricing |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Ftypeshed%2Fpull%2F3371%2Ffiles |
| Sign up | https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=python%2Ftypeshed |
| Reload | https://github.com/python/typeshed/pull/3371/files |
| Reload | https://github.com/python/typeshed/pull/3371/files |
| Reload | https://github.com/python/typeshed/pull/3371/files |
| python | https://github.com/python |
| typeshed | https://github.com/python/typeshed |
| Code | https://github.com/python/typeshed |
| Issues196 (196) | https://github.com/python/typeshed/issues |
| Pull requests251 (251) | https://github.com/python/typeshed/pulls |
| Actions | https://github.com/python/typeshed/actions |
| Security and quality | https://github.com/python/typeshed/security |
| Insights | https://github.com/python/typeshed/insights |
| Sign up for GitHub
| https://github.com/signup?return_to=%2Fpython%2Ftypeshed%2Fissues%2Fnew%2Fchoose |
| terms of service | https://docs.github.com/terms |
| privacy statement | https://docs.github.com/privacy |
| Sign in | https://github.com/login?return_to=%2Fpython%2Ftypeshed%2Fissues%2Fnew%2Fchoose |
| JelleZijlstra | https://github.com/JelleZijlstra |
| python:master | https://github.com/python/typeshed/tree/master |
| ilai-deutel:overloaded-open | https://github.com/ilai-deutel/typeshed/tree/overloaded-open |
|
Conversation
28
| https://github.com/python/typeshed/pull/3371 |
|
Commits
16
| https://github.com/python/typeshed/pull/3371/commits |
|
Checks
0
| https://github.com/python/typeshed/pull/3371/checks |
|
Files changed
| https://github.com/python/typeshed/pull/3371/files |
| Please reload this page | https://github.com/python/typeshed/pull/3371/files |
|
More precise return types for open(), Path.open(), bz2.open(), etc.
| https://github.com/python/typeshed/pull/3371/files#top |
|
Show all changes
16 commits
| https://github.com/python/typeshed/pull/3371/files |
|
71506a8
Overload on mode for open() and Path.open()
ilai-deutel Oct 13, 2019
| https://github.com/python/typeshed/pull/3371/commits/71506a82afed3890e48345bcb1ae32030424fc25 |
|
6bec337
Update Python2 stubs
ilai-deutel Oct 16, 2019
| https://github.com/python/typeshed/pull/3371/commits/6bec337d6d04c77255a92712a58f04a72bcf3887 |
|
23749a6
overload + Literal on BZ2, gzip, LZMA
ilai-deutel Oct 16, 2019
| https://github.com/python/typeshed/pull/3371/commits/23749a63433c3a6ce4d5f0361537957fd03724fc |
|
952dc90
Apply black partially to builtin.pyi
ilai-deutel Oct 16, 2019
| https://github.com/python/typeshed/pull/3371/commits/952dc90761e599aafb5f48cfd0d35e9f0a73379e |
|
0335f3f
Fix pytype exceptions
ilai-deutel Oct 16, 2019
| https://github.com/python/typeshed/pull/3371/commits/0335f3fe483dff43f477623da1b82be1de15c53d |
|
38e04fe
Move _OpenBinaryMode and _OpenTextMode to io; refactor code
ilai-deutel Oct 17, 2019
| https://github.com/python/typeshed/pull/3371/commits/38e04feee888fd58dd7b21d36b130c50612358f5 |
|
1619c9b
Fix missing import in io
ilai-deutel Oct 17, 2019
| https://github.com/python/typeshed/pull/3371/commits/1619c9b39f45dcc58ae606f5fee77ad2f8c0313d |
|
1eb282e
Merge branch 'master' into overloaded-open
ilai-deutel Oct 25, 2019
| https://github.com/python/typeshed/pull/3371/commits/1eb282ed45f279c5c005f3bfb4f2eaa53c0942fc |
|
e6a4321
Merge branch 'master' into overloaded-open
ilai-deutel Nov 11, 2019
| https://github.com/python/typeshed/pull/3371/commits/e6a43215cea57c5b4448183c2b4d20f40cbcc222 |
|
3a631c0
Merge branch 'master' into overloaded-open
ilai-deutel Nov 12, 2019
| https://github.com/python/typeshed/pull/3371/commits/3a631c048f23cf2d92c146595de5d21ba0a6592d |
|
f924ef2
Merge branch 'master' into overloaded-open
ilai-deutel Jan 15, 2020
| https://github.com/python/typeshed/pull/3371/commits/f924ef2394e81e1673608b0711f1fcc11ff4f9c0 |
|
7455811
open() always return BinaryIO in Python2
ilai-deutel Jan 15, 2020
| https://github.com/python/typeshed/pull/3371/commits/7455811ca5d644a01cdfbf250732a1c77d595ecd |
|
529d3b8
Merge branch 'master' into overloaded-open
ilai-deutel Apr 12, 2020
| https://github.com/python/typeshed/pull/3371/commits/529d3b87fd2f07ab4912df49ae149c43fb870cf2 |
|
a4f11f1
Merge branch 'overloaded-open' of https://github.com/ilai-deutel/type…
JelleZijlstra May 28, 2020
| https://github.com/python/typeshed/pull/3371/commits/a4f11f1c4bba8154d73182227b63466fc9469be3 |
|
70916ef
Merge remote-tracking branch 'upstream/master' into ilai-deutel-overl…
JelleZijlstra May 28, 2020
| https://github.com/python/typeshed/pull/3371/commits/70916ef07de498770ac41d9b0bf1e7d6b544bb01 |
|
7bc89fe
Remove support for Python 3.4
ilai-deutel May 28, 2020
| https://github.com/python/typeshed/pull/3371/commits/7bc89fe5937fbef3564481b90a7f153137a39202 |
|
Clear filters
| https://github.com/python/typeshed/pull/3371/files |
| Please reload this page | https://github.com/python/typeshed/pull/3371/files |
| Please reload this page | https://github.com/python/typeshed/pull/3371/files |
|
__builtin__.pyi
| https://github.com/python/typeshed/pull/3371/files#diff-1d779f57c4a031bf6683d708babcda1f1e1bc38fc30e63e87c3451827a870a30 |
|
io.pyi
| https://github.com/python/typeshed/pull/3371/files#diff-0fe1e1e94fea69559bf1315d4030bd037b0a228d46d4946072ca2d8b15fd5f67 |
|
builtins.pyi
| https://github.com/python/typeshed/pull/3371/files#diff-c430302cd57835815fa7401cd1322c5d1ad57c29ac2850903dff4a1380f202f8 |
|
bz2.pyi
| https://github.com/python/typeshed/pull/3371/files#diff-bce99d3bc08b3afed5f271ca5235c363aaef702542c61e347770b1405beea20d |
|
gzip.pyi
| https://github.com/python/typeshed/pull/3371/files#diff-9df9b00cc949699f369cb80cbbfdd2851d8ffdbcb8e943bdf7568b4ce8e11ac7 |
|
io.pyi
| https://github.com/python/typeshed/pull/3371/files#diff-6d8cbfb16fc86228e7ab44b97d73ce6f66a232a60bc6beb052500a2d69b5249e |
|
lzma.pyi
| https://github.com/python/typeshed/pull/3371/files#diff-d7c3b85e687b92c58c828745c273b9274dcea7fe7687fa9c6c053b6b01fbb54c |
|
pathlib.pyi
| https://github.com/python/typeshed/pull/3371/files#diff-279c92905a846af99b16e776c21be08082c4a1c72bd353086f864de43a0e2e78 |
|
pathlib2.pyi
| https://github.com/python/typeshed/pull/3371/files#diff-fa472f5ba0373f7c25d97a64145b3c987bd03812d78d8c29134f5007af95e079 |
| stdlib/2/__builtin__.pyi | https://github.com/python/typeshed/pull/3371/files#diff-1d779f57c4a031bf6683d708babcda1f1e1bc38fc30e63e87c3451827a870a30 |
|
View file
| https://github.com/ilai-deutel/typeshed/blob/7bc89fe5937fbef3564481b90a7f153137a39202/stdlib/2/__builtin__.pyi |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/typeshed/pull/3371/{{ revealButtonHref }} |
|
| https://github.com/python/typeshed/pull/3371/files#diff-1d779f57c4a031bf6683d708babcda1f1e1bc38fc30e63e87c3451827a870a30 |
|
| https://github.com/python/typeshed/pull/3371/files#diff-1d779f57c4a031bf6683d708babcda1f1e1bc38fc30e63e87c3451827a870a30 |
|
| https://github.com/python/typeshed/pull/3371/files#diff-1d779f57c4a031bf6683d708babcda1f1e1bc38fc30e63e87c3451827a870a30 |
|
| https://github.com/python/typeshed/pull/3371/files#diff-1d779f57c4a031bf6683d708babcda1f1e1bc38fc30e63e87c3451827a870a30 |
| stdlib/2/io.pyi | https://github.com/python/typeshed/pull/3371/files#diff-0fe1e1e94fea69559bf1315d4030bd037b0a228d46d4946072ca2d8b15fd5f67 |
|
View file
| https://github.com/ilai-deutel/typeshed/blob/7bc89fe5937fbef3564481b90a7f153137a39202/stdlib/2/io.pyi |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/typeshed/pull/3371/{{ revealButtonHref }} |
|
| https://github.com/python/typeshed/pull/3371/files#diff-0fe1e1e94fea69559bf1315d4030bd037b0a228d46d4946072ca2d8b15fd5f67 |
|
| https://github.com/python/typeshed/pull/3371/files#diff-0fe1e1e94fea69559bf1315d4030bd037b0a228d46d4946072ca2d8b15fd5f67 |
|
| https://github.com/python/typeshed/pull/3371/files#diff-0fe1e1e94fea69559bf1315d4030bd037b0a228d46d4946072ca2d8b15fd5f67 |
| stdlib/2and3/builtins.pyi | https://github.com/python/typeshed/pull/3371/files#diff-c430302cd57835815fa7401cd1322c5d1ad57c29ac2850903dff4a1380f202f8 |
|
View file
| https://github.com/ilai-deutel/typeshed/blob/7bc89fe5937fbef3564481b90a7f153137a39202/stdlib/2and3/builtins.pyi |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/typeshed/pull/3371/{{ revealButtonHref }} |
|
| https://github.com/python/typeshed/pull/3371/files#diff-c430302cd57835815fa7401cd1322c5d1ad57c29ac2850903dff4a1380f202f8 |
|
| https://github.com/python/typeshed/pull/3371/files#diff-c430302cd57835815fa7401cd1322c5d1ad57c29ac2850903dff4a1380f202f8 |
|
| https://github.com/python/typeshed/pull/3371/files#diff-c430302cd57835815fa7401cd1322c5d1ad57c29ac2850903dff4a1380f202f8 |
|
| https://github.com/python/typeshed/pull/3371/files#diff-c430302cd57835815fa7401cd1322c5d1ad57c29ac2850903dff4a1380f202f8 |
| stdlib/2and3/bz2.pyi | https://github.com/python/typeshed/pull/3371/files#diff-bce99d3bc08b3afed5f271ca5235c363aaef702542c61e347770b1405beea20d |
|
View file
| https://github.com/ilai-deutel/typeshed/blob/7bc89fe5937fbef3564481b90a7f153137a39202/stdlib/2and3/bz2.pyi |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/typeshed/pull/3371/{{ revealButtonHref }} |
| srittau | https://github.com/srittau |
| May 28, 2020 | https://github.com/python/typeshed/pull/3371/files#r431757534 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/typeshed/pull/3371/files |
|
| https://github.com/python/typeshed/pull/3371/files#diff-bce99d3bc08b3afed5f271ca5235c363aaef702542c61e347770b1405beea20d |
| stdlib/3/gzip.pyi | https://github.com/python/typeshed/pull/3371/files#diff-9df9b00cc949699f369cb80cbbfdd2851d8ffdbcb8e943bdf7568b4ce8e11ac7 |
|
View file
| https://github.com/ilai-deutel/typeshed/blob/7bc89fe5937fbef3564481b90a7f153137a39202/stdlib/3/gzip.pyi |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/typeshed/pull/3371/{{ revealButtonHref }} |
|
| https://github.com/python/typeshed/pull/3371/files#diff-9df9b00cc949699f369cb80cbbfdd2851d8ffdbcb8e943bdf7568b4ce8e11ac7 |
|
| https://github.com/python/typeshed/pull/3371/files#diff-9df9b00cc949699f369cb80cbbfdd2851d8ffdbcb8e943bdf7568b4ce8e11ac7 |
|
| https://github.com/python/typeshed/pull/3371/files#diff-9df9b00cc949699f369cb80cbbfdd2851d8ffdbcb8e943bdf7568b4ce8e11ac7 |
| stdlib/3/io.pyi | https://github.com/python/typeshed/pull/3371/files#diff-6d8cbfb16fc86228e7ab44b97d73ce6f66a232a60bc6beb052500a2d69b5249e |
|
View file
| https://github.com/ilai-deutel/typeshed/blob/7bc89fe5937fbef3564481b90a7f153137a39202/stdlib/3/io.pyi |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/typeshed/pull/3371/{{ revealButtonHref }} |
|
| https://github.com/python/typeshed/pull/3371/files#diff-6d8cbfb16fc86228e7ab44b97d73ce6f66a232a60bc6beb052500a2d69b5249e |
|
| https://github.com/python/typeshed/pull/3371/files#diff-6d8cbfb16fc86228e7ab44b97d73ce6f66a232a60bc6beb052500a2d69b5249e |
|
| https://github.com/python/typeshed/pull/3371/files#diff-6d8cbfb16fc86228e7ab44b97d73ce6f66a232a60bc6beb052500a2d69b5249e |
| Please reload this page | https://github.com/python/typeshed/pull/3371/files |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |