| 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:bd9ef62c-9849-f3c5-f20b-5edf033bd250 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | A888:2A087:1ECCDD:297EED:6B00223C |
| html-safe-nonce | 15dcea8c18a96b6aec083e810734f8fefb7f36f63d2e6355a9e7eccfa473b258 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBODg4OjJBMDg3OjFFQ0NERDoyOTdFRUQ6NkIwMDIyM0MiLCJ2aXNpdG9yX2lkIjoiNDU3NzY4NTA3OTEyNzQ5OTMyNCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 8b607998ba72ae633684031bd1eb7d6303c42b33c7975b75f19749ff7b3e4f3f |
| hovercard-subject-tag | pull_request:90824456 |
| 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/308/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 #301 now List[Tuple[T, T]][int] == List[Tuple[int, int]]
Fixes #298 now Table = Tuple[T, List[T]] can be used as generic type alias (as in PEP 484 example)
Fixes #299 now class MyTup(Tuple[in... |
| 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/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 | 44c658b24abf00491fb7ae5f56d42c9f38cbeab2 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/python/typing/pull/308/files#start-of-content |
| https://github.com/ |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Ftyping%2Fpull%2F308%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%2F308%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/308/files |
| Reload | https://github.com/python/typing/pull/308/files |
| Reload | https://github.com/python/typing/pull/308/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 |
| gvanrossum | https://github.com/gvanrossum |
| python:master | https://github.com/python/typing/tree/master |
| ilevkivskyi:the-big-sync | https://github.com/ilevkivskyi/typehinting/tree/the-big-sync |
|
Conversation
8
| https://github.com/python/typing/pull/308 |
|
Commits
39
| https://github.com/python/typing/pull/308/commits |
|
Checks
0
| https://github.com/python/typing/pull/308/checks |
|
Files changed
| https://github.com/python/typing/pull/308/files |
| Please reload this page | https://github.com/python/typing/pull/308/files |
|
Refactor Union, Tuple, and Callable
| https://github.com/python/typing/pull/308/files#top |
|
Show all changes
39 commits
| https://github.com/python/typing/pull/308/files |
|
e8c3ad6
Make Tuple[T, S] subcriptable and subclassable
ilevkivskyi Oct 23, 2016
| https://github.com/python/typing/pull/308/commits/e8c3ad6eebd4942e99d2fe0aef7f99e1e2c854e7 |
|
cfcf81f
Make Callable[..., T] subscriptable and subclassable
ilevkivskyi Oct 23, 2016
| https://github.com/python/typing/pull/308/commits/cfcf81f39d0083151eeb90cbd20a854cbf13292f |
|
1368e97
Make Union[T, S] subsctiptable
ilevkivskyi Oct 23, 2016
| https://github.com/python/typing/pull/308/commits/1368e976a20b071bd9dfa9a741c8534330021279 |
|
7ee4a1a
Disable plain Union and Optional as type arguments
ilevkivskyi Oct 23, 2016
| https://github.com/python/typing/pull/308/commits/7ee4a1a1cc9d6c26f1432bd2d6552024efc7f75e |
|
5fdceba
Implement __eq__ for GenericMeta
ilevkivskyi Oct 23, 2016
| https://github.com/python/typing/pull/308/commits/5fdceba8144133eef7790e72d6edfd8d9f27b733 |
|
f339586
Implement __eq__ for Unions
ilevkivskyi Oct 23, 2016
| https://github.com/python/typing/pull/308/commits/f3395860a39e858a92615cba26387afb1a88e17f |
|
26f50a3
Refactor common code in __eq__ and __repr__
ilevkivskyi Oct 23, 2016
| https://github.com/python/typing/pull/308/commits/26f50a3b68cf55de825466faa67d01346393861d |
|
65de907
Remove redundant code
ilevkivskyi Oct 23, 2016
| https://github.com/python/typing/pull/308/commits/65de9072034976cf639c2215a4f9671a814f2c1c |
|
897de4e
Fix minor bugs + mini-refactoring
ilevkivskyi Oct 23, 2016
| https://github.com/python/typing/pull/308/commits/897de4e7e0d468478aa272d0147143c5b5f0b0ac |
|
c687ffa
Fix repr of Callable subclasses
ilevkivskyi Oct 23, 2016
| https://github.com/python/typing/pull/308/commits/c687ffab2dc6bacf0ea949d30074d7fb2b685382 |
|
582a37f
Don't be too pedantic in GenericMeta._eval_type
ilevkivskyi Oct 23, 2016
| https://github.com/python/typing/pull/308/commits/582a37f541a7251f390ed71ec3f00953c6035328 |
|
02e6b14
Simplify __hash__ and factor out orig_chain
ilevkivskyi Oct 23, 2016
| https://github.com/python/typing/pull/308/commits/02e6b14f522f933e18b5948976d07e627d73fb05 |
|
8d802cc
Remove outdated tests + be more pedanctic in _Union._eval_type
ilevkivskyi Oct 23, 2016
| https://github.com/python/typing/pull/308/commits/8d802cc325f05e1707fc0d6cc3556bdaaf26d860 |
|
4e2527c
Add tests
ilevkivskyi Oct 23, 2016
| https://github.com/python/typing/pull/308/commits/4e2527c000759468d960d8cbb741d9e41b8cc0eb |
|
92da67f
Factor out _subs_tree for Union and Generic
ilevkivskyi Oct 24, 2016
| https://github.com/python/typing/pull/308/commits/92da67fd6a9313e5cfbe70e9b0980d1bee527751 |
|
7563c92
Prohibit plain Generic[T] as type argument
ilevkivskyi Oct 24, 2016
| https://github.com/python/typing/pull/308/commits/7563c92e19c01cde51889a20e65176936d85234e |
|
f33545b
Correct a comment
ilevkivskyi Oct 24, 2016
| https://github.com/python/typing/pull/308/commits/f33545b2161471302a413cdd634502ed1075e5fe |
|
4a996b2
Erase but preserve type also for Callable
ilevkivskyi Oct 24, 2016
| https://github.com/python/typing/pull/308/commits/4a996b2e53d6907edfde44bd40165450914e3017 |
|
6564742
Erase but preserve type for all generics
ilevkivskyi Oct 24, 2016
| https://github.com/python/typing/pull/308/commits/6564742cba2e9eeeee946553df8bee893b09b9b2 |
|
184f089
Restore original __next_in_mro__ and use more precise bases
Oct 24, 2016
| https://github.com/python/typing/pull/308/commits/184f0899d1e758d400e49cbfc1bb0510eb22361f |
|
b613325
Preserve __qualname__ on subscription
Oct 24, 2016
| https://github.com/python/typing/pull/308/commits/b613325c09e1c24d7f5e06a78638d1d4489b31bd |
|
011b9d8
Add tests and factor common stuff for Union
ilevkivskyi Oct 24, 2016
| https://github.com/python/typing/pull/308/commits/011b9d86c7eb65a41a9f2c7a67df3fad25722fef |
|
52712a6
Add even more tests
ilevkivskyi Oct 24, 2016
| https://github.com/python/typing/pull/308/commits/52712a6c82f8b63a2f0ca1147c4ff397ccd61579 |
|
2641151
One more test + minor code simplification
ilevkivskyi Oct 24, 2016
| https://github.com/python/typing/pull/308/commits/26411514cb0818e9220166557fb12076bd92bbb5 |
|
9f1fb98
Polishing code
ilevkivskyi Oct 25, 2016
| https://github.com/python/typing/pull/308/commits/9f1fb98df873cf8828dfdb6d8e3099e3f1176fbd |
|
279a67e
Minor changes
ilevkivskyi Oct 25, 2016
| https://github.com/python/typing/pull/308/commits/279a67ed26165e62df53b1d7d0254b865f9a9094 |
|
f173fde
Precalculate hash + refactor + more tests
ilevkivskyi Oct 25, 2016
| https://github.com/python/typing/pull/308/commits/f173fde3fc5525bfc5ee172e2b7f078a0f61a1b5 |
|
819d472
Simplify repr for Union
ilevkivskyi Oct 25, 2016
| https://github.com/python/typing/pull/308/commits/819d4721b451c9a9500183d3092bf160d64343e8 |
|
e6f19a8
Add big test for __eq__, __repr__, and Any substitution
ilevkivskyi Oct 25, 2016
| https://github.com/python/typing/pull/308/commits/e6f19a8ea1f1770ed30c0e0ab3afd495d0d5ad6b |
|
deed806
Add test to illustrate substitution
ilevkivskyi Oct 25, 2016
| https://github.com/python/typing/pull/308/commits/deed806d5c21a938260895eec34e1235d1078cd0 |
|
f6382a7
Minor change in tests
ilevkivskyi Oct 25, 2016
| https://github.com/python/typing/pull/308/commits/f6382a79cc29c3350bed53115dab1702fbe8cd9c |
|
9bc7374
Add/expand comments and docstrings
ilevkivskyi Oct 25, 2016
| https://github.com/python/typing/pull/308/commits/9bc7374b01ad325bf9ca67be683e5a7ae4a008f0 |
|
c2724ce
Fix the __qualname__ in PY 3.2
ilevkivskyi Oct 25, 2016
| https://github.com/python/typing/pull/308/commits/c2724cebda2e2e0d7b1d8d181c1f4da81374b742 |
|
fd3e344
Add tests to Python 2
ilevkivskyi Oct 25, 2016
| https://github.com/python/typing/pull/308/commits/fd3e3442888cbe23a2d75dc22e8633d14552ca7f |
|
cd7bbe2
Modify Union in Python 2
ilevkivskyi Oct 25, 2016
| https://github.com/python/typing/pull/308/commits/cd7bbe2329ac7c99e135dd7870c030112ef354d1 |
|
068ab5e
Update Python 2 tests
ilevkivskyi Oct 25, 2016
| https://github.com/python/typing/pull/308/commits/068ab5eb2f1db61c796edd0c944a9e6a4bf3552f |
|
09c4797
Change remaining parts in Python 2
ilevkivskyi Oct 25, 2016
| https://github.com/python/typing/pull/308/commits/09c47977348e718a7e03f4f1e963afb8ebb5be82 |
|
60303f7
Fix final test in PY 2
ilevkivskyi Oct 25, 2016
| https://github.com/python/typing/pull/308/commits/60303f7204eaa66d5f1ba36211ae9138409225f4 |
|
ea5dd05
Also call super().__init__ in PY 2 Generic
ilevkivskyi Oct 26, 2016
| https://github.com/python/typing/pull/308/commits/ea5dd0546f749bbceab7d0b572f84354c1a72acb |
|
Clear filters
| https://github.com/python/typing/pull/308/files |
| Please reload this page | https://github.com/python/typing/pull/308/files |
| Please reload this page | https://github.com/python/typing/pull/308/files |
|
test_typing.py
| https://github.com/python/typing/pull/308/files#diff-f23c53e6fa002cdeac74b9499d744b9492bfd34a58ce281c2b5076e628d0083a |
|
typing.py
| https://github.com/python/typing/pull/308/files#diff-cbea31cd6366bdaf7805202979325ba4b14a29613bb7aeaecf9a18e94ea93619 |
|
test_typing.py
| https://github.com/python/typing/pull/308/files#diff-e618ee6a4894a62d9269e41c4dc836e31e8224cfb66b5be3b325f4798ec245e3 |
|
typing.py
| https://github.com/python/typing/pull/308/files#diff-ad6da8dfad5c336100410e57073641a0266b69e1801476d2b1e593b2c04f81f5 |
| python2/test_typing.py | https://github.com/python/typing/pull/308/files#diff-f23c53e6fa002cdeac74b9499d744b9492bfd34a58ce281c2b5076e628d0083a |
|
View file
| https://github.com/ilevkivskyi/typehinting/blob/ea5dd0546f749bbceab7d0b572f84354c1a72acb/python2/test_typing.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/typing/pull/308/{{ revealButtonHref }} |
|
| https://github.com/python/typing/pull/308/files#diff-f23c53e6fa002cdeac74b9499d744b9492bfd34a58ce281c2b5076e628d0083a |
|
| https://github.com/python/typing/pull/308/files#diff-f23c53e6fa002cdeac74b9499d744b9492bfd34a58ce281c2b5076e628d0083a |
|
| https://github.com/python/typing/pull/308/files#diff-f23c53e6fa002cdeac74b9499d744b9492bfd34a58ce281c2b5076e628d0083a |
|
| https://github.com/python/typing/pull/308/files#diff-f23c53e6fa002cdeac74b9499d744b9492bfd34a58ce281c2b5076e628d0083a |
|
| https://github.com/python/typing/pull/308/files#diff-f23c53e6fa002cdeac74b9499d744b9492bfd34a58ce281c2b5076e628d0083a |
|
| https://github.com/python/typing/pull/308/files#diff-f23c53e6fa002cdeac74b9499d744b9492bfd34a58ce281c2b5076e628d0083a |
|
| https://github.com/python/typing/pull/308/files#diff-f23c53e6fa002cdeac74b9499d744b9492bfd34a58ce281c2b5076e628d0083a |
|
| https://github.com/python/typing/pull/308/files#diff-f23c53e6fa002cdeac74b9499d744b9492bfd34a58ce281c2b5076e628d0083a |
|
| https://github.com/python/typing/pull/308/files#diff-f23c53e6fa002cdeac74b9499d744b9492bfd34a58ce281c2b5076e628d0083a |
|
| https://github.com/python/typing/pull/308/files#diff-f23c53e6fa002cdeac74b9499d744b9492bfd34a58ce281c2b5076e628d0083a |
| Please reload this page | https://github.com/python/typing/pull/308/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 |