| 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:fcae84f9-4632-1d27-fb6b-2a95e587052e |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 9392:1F7A:B300F0:F337D4:6AFFFB1D |
| html-safe-nonce | c7f06c2a12148f6e1e2ddaf9266a42213f72084a805018c72ac49be44e853e4f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MzkyOjFGN0E6QjMwMEYwOkYzMzdENDo2QUZGRkIxRCIsInZpc2l0b3JfaWQiOiI2MTI5ODY0NTY2MDIyMDc3MjEzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 5f716b07790ad1bc3f5ca61aa420d9cac5714bc1a0f63f2a9b594f68908a98c4 |
| hovercard-subject-tag | pull_request:117753283 |
| 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/typing/pull/417/files |
| twitter:image | https://avatars.githubusercontent.com/u/12005495?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/12005495?s=400&v=4 |
| og:image:alt | Fixes #11
This is a runtime implementation of protocols as per draft PEP 544. (The mypy counterpart is python/mypy#3132)
The implementation is straightforward (mostly I just made current version to... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 0a0d8686a27478df474dd7415776a7a080cde8838b3cd92ea7601187572e5729 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/python/typing git https://github.com/python/typing.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 24604008 |
| octolytics-dimension-repository_nwo | python/typing |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 24604008 |
| octolytics-dimension-repository_network_root_nwo | python/typing |
| 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 | 16a11879678aaf97e2a42c33ee70830aa084fa37 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/python/typing/pull/417/files#start-of-content |
| https://github.com/ |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Ftyping%2Fpull%2F417%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%2Ftyping%2Fpull%2F417%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%2Ftyping |
| Reload | https://github.com/python/typing/pull/417/files |
| Reload | https://github.com/python/typing/pull/417/files |
| Reload | https://github.com/python/typing/pull/417/files |
| python | https://github.com/python |
| typing | https://github.com/python/typing |
| Code | https://github.com/python/typing |
| Issues206 (206) | https://github.com/python/typing/issues |
| Pull requests27 (27) | https://github.com/python/typing/pulls |
| Discussions | https://github.com/python/typing/discussions |
| Actions | https://github.com/python/typing/actions |
| Security and quality | https://github.com/python/typing/security |
| Insights | https://github.com/python/typing/insights |
| Sign up for GitHub
| https://github.com/signup?return_to=%2Fpython%2Ftyping%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%2Ftyping%2Fissues%2Fnew%2Fchoose |
| ilevkivskyi | https://github.com/ilevkivskyi |
| python:master | https://github.com/python/typing/tree/master |
| ilevkivskyi:protocols | https://github.com/ilevkivskyi/typehinting/tree/protocols |
|
Conversation
6
| https://github.com/python/typing/pull/417 |
|
Commits
19
| https://github.com/python/typing/pull/417/commits |
|
Checks
0
| https://github.com/python/typing/pull/417/checks |
|
Files changed
| https://github.com/python/typing/pull/417/files |
| Please reload this page | https://github.com/python/typing/pull/417/files |
|
Protocols
| https://github.com/python/typing/pull/417/files#top |
|
Show all changes
19 commits
| https://github.com/python/typing/pull/417/files |
|
de21b02
Initial ideas for runtime implementation of protocols
ilevkivskyi Apr 19, 2017
| https://github.com/python/typing/pull/417/commits/de21b02b541a1e07ee1f9e9d1fa3824eaaf134f5 |
|
6a31a93
Uniform class and instance checks (same as collections.abc)
ilevkivskyi Apr 23, 2017
| https://github.com/python/typing/pull/417/commits/6a31a93b96007d1a60b34df469d93d3d4f62fddf |
|
f107299
Fix lint
ilevkivskyi Apr 23, 2017
| https://github.com/python/typing/pull/417/commits/f1072994dad1cd1183aa43dca9e0600a46f011b1 |
|
8e07b88
Simplify code using absence of non-protocol bases + some support for …
ilevkivskyi Apr 23, 2017
| https://github.com/python/typing/pull/417/commits/8e07b885f0159e513e01afdee8b3ea06bdc0fa6e |
|
e3db3de
Better support for isinstance(); add some tests
ilevkivskyi Apr 24, 2017
| https://github.com/python/typing/pull/417/commits/e3db3de4f8f95ccf9bc3e3450e443657592cbce3 |
|
e580511
Minor fixes
ilevkivskyi Apr 24, 2017
| https://github.com/python/typing/pull/417/commits/e580511940d83a258c02d5c3011230b8fcb3e0bd |
|
d99d9ef
Add more tests; improve docstrings
ilevkivskyi Apr 24, 2017
| https://github.com/python/typing/pull/417/commits/d99d9ef8537d8564b4585c8dff12cdaaac478b1c |
|
831e1a7
Add support for extending collections protocols (+ tests)
ilevkivskyi Apr 24, 2017
| https://github.com/python/typing/pull/417/commits/831e1a7f65bf7a08eb6a0b6e299545bbc50fcb27 |
|
a932e9f
Fix behaviour in different veriosns
ilevkivskyi Apr 24, 2017
| https://github.com/python/typing/pull/417/commits/a932e9faa38f429afbfd0acf84145b7c4b35d2df |
|
3e34f7a
More compatibility fixes
ilevkivskyi Apr 24, 2017
| https://github.com/python/typing/pull/417/commits/3e34f7adb77c93fac1b2b1c0888fed93ac63bec2 |
|
8483810
Fix typos and lint
ilevkivskyi Apr 24, 2017
| https://github.com/python/typing/pull/417/commits/8483810ce54fdce9e318db5700c19860819d2a40 |
|
9e7b674
Even more compatibility fixes
ilevkivskyi Apr 24, 2017
| https://github.com/python/typing/pull/417/commits/9e7b6740616afe44a9a9b872fe130373f9fee6a8 |
|
8ee5b71
Reorganize code more logically (hopefully this will also reduce diff)
Apr 25, 2017
| https://github.com/python/typing/pull/417/commits/8ee5b712abf655d851d7c8282bef505434eb522e |
|
4a0d335
Add tests for PY36 and @abstracmethod
ilevkivskyi Apr 25, 2017
| https://github.com/python/typing/pull/417/commits/4a0d335ca2611564f6925bd263f16143462147cd |
|
8fc9a5e
Backport protocols to Python 2
ilevkivskyi Apr 25, 2017
| https://github.com/python/typing/pull/417/commits/8fc9a5e9d16b850a45e6ff9b80b7ac449019ee3e |
|
b6e526e
Corner case for PEP 526 subprotocols
ilevkivskyi Apr 26, 2017
| https://github.com/python/typing/pull/417/commits/b6e526e23b2d78298e4995bdb4183cab92b6c89c |
|
d3a5491
Add test for named tuple with protocol
ilevkivskyi May 13, 2017
| https://github.com/python/typing/pull/417/commits/d3a5491e6e7349acddba7d3e2b7f75f75a965859 |
|
eecef84
Merge branch 'master' into protocols
ilevkivskyi Jul 28, 2017
| https://github.com/python/typing/pull/417/commits/eecef84c3eb14d85cb8dc7c1cd5ebd140fc995b6 |
|
904c978
Fix broken merge
ilevkivskyi Jul 28, 2017
| https://github.com/python/typing/pull/417/commits/904c978670102c6e116c096bc3706e290f801237 |
|
Clear filters
| https://github.com/python/typing/pull/417/files |
| Please reload this page | https://github.com/python/typing/pull/417/files |
| Please reload this page | https://github.com/python/typing/pull/417/files |
|
test_typing.py
| https://github.com/python/typing/pull/417/files#diff-f23c53e6fa002cdeac74b9499d744b9492bfd34a58ce281c2b5076e628d0083a |
|
typing.py
| https://github.com/python/typing/pull/417/files#diff-cbea31cd6366bdaf7805202979325ba4b14a29613bb7aeaecf9a18e94ea93619 |
|
test_typing.py
| https://github.com/python/typing/pull/417/files#diff-e618ee6a4894a62d9269e41c4dc836e31e8224cfb66b5be3b325f4798ec245e3 |
|
typing.py
| https://github.com/python/typing/pull/417/files#diff-ad6da8dfad5c336100410e57073641a0266b69e1801476d2b1e593b2c04f81f5 |
| Please reload this page | https://github.com/python/typing/pull/417/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 |