| route-pattern | /_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format) |
| route-controller | voltron_pull_requests_fragments |
| route-action | pull_request_layout |
| fetch-nonce | v2:86634b22-a2d5-d5e0-094e-c13fb58e0ba1 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | D7A4:D70A6:5E7C37:800D02:6A62A05C |
| html-safe-nonce | caa4b339346628e3f8e75651652ae3b7e11920fb76dfa53ab331380e1d46bd8d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEN0E0OkQ3MEE2OjVFN0MzNzo4MDBEMDI6NkE2MkEwNUMiLCJ2aXNpdG9yX2lkIjoiNDMzNTgxMTM3OTA5MTYyMDc2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 081d35c345bbeba909ffce1c0f18c9187e7babb8075f51f148510d2bec2394a8 |
| hovercard-subject-tag | pull_request:3120909927 |
| 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 | ///voltron/pull_requests_fragments/pull_request_layout |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/python/typeshed/15160/pull_request_layout |
| twitter:image | https://opengraph.githubassets.com/62815450f952bfaa55af50386d242568d8abb789b2240521e1447a6bc905c6fe/python/typeshed/pull/15160 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/62815450f952bfaa55af50386d242568d8abb789b2240521e1447a6bc905c6fe/python/typeshed/pull/15160 |
| og:image:alt | Fixes #9004
Partially Fixes #15271
See also: #11403
This PR allows set differences with disjoint generic types. This option was previously argued against (#9004 (comment)) because
A user shipped c... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | randolf-scholz |
| hostname | github.com |
| expected-hostname | github.com |
| None | a6443033349a18134b517627f043d4a59a5110337b879810c7229c2c7e28eda0 |
| turbo-cache-control | no-cache |
| 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 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | d6c6cacbe32d3ddfd1796fbd1a39b8fb47b87daf |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/python/typeshed/pull/15160#start-of-content |
|
| https://github.com/ |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Ftypeshed%2Fpull%2F15160 |
| GitHub CopilotWrite better code with AI | https://github.com/features/copilot |
| GitHub Copilot appDirect agents from issue to merge | https://github.com/features/ai/github-app |
| MCP RegistryNewIntegrate external tools | https://github.com/mcp |
| ActionsAutomate any workflow | https://github.com/features/actions |
| CodespacesInstant dev environments | https://github.com/features/codespaces |
| IssuesPlan and track work | https://github.com/features/issues |
| Code ReviewManage code changes | https://github.com/features/code-review |
| Code QualityEnforce quality at merge | https://github.com/features/code-quality |
| GitHub Advanced SecurityFind and fix vulnerabilities | https://github.com/security/advanced-security |
| Code securitySecure your code as you build | https://github.com/security/advanced-security/code-security |
| Secret protectionStop leaks before they start | https://github.com/security/advanced-security/secret-protection |
| Why GitHub | https://github.com/why-github |
| Documentation | https://docs.github.com |
| Blog | https://github.blog |
| Changelog | https://github.blog/changelog |
| Marketplace | https://github.com/marketplace |
| View all features | https://github.com/features |
| Enterprises | https://github.com/enterprise |
| Small and medium teams | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| App Modernization | https://github.com/solutions/use-case/app-modernization |
| DevSecOps | https://github.com/solutions/use-case/devsecops |
| DevOps | https://github.com/solutions/use-case/devops |
| CI/CD | https://github.com/solutions/use-case/ci-cd |
| View all use cases | https://github.com/solutions/use-case |
| 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 |
| View all industries | https://github.com/solutions/industry |
| View all solutions | https://github.com/solutions |
| AI | https://github.com/resources/articles?topic=ai |
| Software Development | https://github.com/resources/articles?topic=software-development |
| DevOps | https://github.com/resources/articles?topic=devops |
| Security | https://github.com/resources/articles?topic=security |
| View all topics | https://github.com/resources/articles |
| Customer stories | https://github.com/customer-stories |
| Events & webinars | https://github.com/resources/events |
| Ebooks & reports | https://github.com/resources/whitepapers |
| Business insights | https://github.com/solutions/executive-insights |
| GitHub Skills | https://skills.github.com |
| Documentation | https://docs.github.com |
| Customer support | https://support.github.com |
| Community forum | https://github.com/orgs/community/discussions |
| Trust center | https://github.com/trust-center |
| Partners | https://github.com/partners |
| View all resources | https://github.com/resources |
| GitHub SponsorsFund open source developers | https://github.com/open-source/sponsors |
| Security Lab | https://securitylab.github.com |
| Maintainer Community | https://maintainers.github.com |
| Accelerator | https://github.com/open-source/accelerator |
| GitHub Stars | https://stars.github.com |
| Archive Program | https://archiveprogram.github.com |
| Topics | https://github.com/topics |
| Trending | https://github.com/trending |
| Collections | https://github.com/collections |
| Enterprise platformAI-powered developer platform | https://github.com/enterprise |
| GitHub Advanced SecurityEnterprise-grade security features | 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 |
| Pricing | https://github.com/pricing |
| Search syntax tips | https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax |
| documentation | https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Ftypeshed%2Fpull%2F15160 |
|
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%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=python%2Ftypeshed |
| Reload | https://github.com/python/typeshed/pull/15160 |
| Reload | https://github.com/python/typeshed/pull/15160 |
| Reload | https://github.com/python/typeshed/pull/15160 |
| Please reload this page | https://github.com/python/typeshed/pull/15160 |
|
python
| https://github.com/python |
| typeshed | https://github.com/python/typeshed |
| Please reload this page | https://github.com/python/typeshed/pull/15160 |
|
Notifications
| https://github.com/login?return_to=%2Fpython%2Ftypeshed |
|
Fork
2.1k
| https://github.com/login?return_to=%2Fpython%2Ftypeshed |
|
Star
5.1k
| https://github.com/login?return_to=%2Fpython%2Ftypeshed |
|
Code
| https://github.com/python/typeshed |
|
Issues
217
| https://github.com/python/typeshed/issues |
|
Pull requests
141
| https://github.com/python/typeshed/pulls |
|
Actions
| https://github.com/python/typeshed/actions |
|
Security and quality
0
| https://github.com/python/typeshed/security |
|
Insights
| https://github.com/python/typeshed/pulse |
|
Code
| https://github.com/python/typeshed |
|
Issues
| https://github.com/python/typeshed/issues |
|
Pull requests
| 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/pulse |
| AlexWaygood | https://github.com/AlexWaygood |
| python:main | https://github.com/python/typeshed/tree/main |
| randolf-scholz:set_sub | https://github.com/randolf-scholz/typeshed/tree/set_sub |
| Conversation | https://github.com/python/typeshed/pull/15160 |
| Commits3 (3) | https://github.com/python/typeshed/pull/15160/commits |
| Checks | https://github.com/python/typeshed/pull/15160/checks |
| Files changed | https://github.com/python/typeshed/pull/15160/files |
| allow arbitrary types in set difference | https://github.com/python/typeshed/pull/15160#top |
| AlexWaygood | https://github.com/AlexWaygood |
| python:main | https://github.com/python/typeshed/tree/main |
| randolf-scholz:set_sub | https://github.com/randolf-scholz/typeshed/tree/set_sub |
|
| https://github.com/randolf-scholz |
| randolf-scholz | https://github.com/randolf-scholz |
| Dec 21, 2025 | https://github.com/python/typeshed/pull/15160#issue-3751460810 |
| Please reload this page | https://github.com/python/typeshed/pull/15160 |
| #9004 | https://github.com/python/typeshed/issues/9004 |
| #15271 | https://github.com/python/typeshed/issues/15271 |
| #11403 | https://github.com/python/typeshed/pull/11403 |
| #9004 (comment) | https://github.com/python/typeshed/issues/9004#issuecomment-1294962317 |
| #1840 | https://github.com/python/typeshed/issues/1840 |
| https://peps.python.org/pep-0800/ | https://peps.python.org/pep-0800/ |
| Please reload this page | https://github.com/python/typeshed/pull/15160 |
| https://github.com/apps/github-actions |
| Sign in to view | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Ftypeshed%2Fpull%2F15160 |
|
| https://github.com/randolf-scholz |
| allow arbitrary types in set difference | https://github.com/python/typeshed/pull/15160/commits/57c542c922adb0d562a76d9618127bb2791a5eaa |
| 57c542c | https://github.com/python/typeshed/pull/15160/commits/57c542c922adb0d562a76d9618127bb2791a5eaa |
| https://github.com/randolf-scholz |
| randolf-scholz | https://github.com/randolf-scholz |
| force-pushed | https://github.com/python/typeshed/compare/db500083213e3d461b2f112b0f5a707c156c6b72..57c542c922adb0d562a76d9618127bb2791a5eaa |
| db50008 | https://github.com/python/typeshed/commit/db500083213e3d461b2f112b0f5a707c156c6b72 |
| 57c542c | https://github.com/python/typeshed/commit/57c542c922adb0d562a76d9618127bb2791a5eaa |
|
Compare
| https://github.com/python/typeshed/compare/db500083213e3d461b2f112b0f5a707c156c6b72..57c542c922adb0d562a76d9618127bb2791a5eaa |
| January 10, 2026 09:52 | https://github.com/python/typeshed/pull/15160#event-21961716187 |
|
| https://github.com/randolf-scholz |
| updated test | https://github.com/python/typeshed/pull/15160/commits/f7af3f7d067ac4e22ca912be9b6ea33dd9db8595 |
| f7af3f7 | https://github.com/python/typeshed/pull/15160/commits/f7af3f7d067ac4e22ca912be9b6ea33dd9db8595 |
| https://github.com/apps/github-actions |
| Sign in to view | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Ftypeshed%2Fpull%2F15160 |
|
Improved Literal? types
python/mypy#20444
| https://github.com/python/mypy/pull/20444 |
|
Improve annotations for various set methods
#11403
| https://github.com/python/typeshed/pull/11403 |
|
| https://github.com/randolf-scholz |
| Merge branch 'main' into set_sub | https://github.com/python/typeshed/pull/15160/commits/85318868fc25ea281f544724e06d65421a7f52d9 |
| 8531886 | https://github.com/python/typeshed/pull/15160/commits/85318868fc25ea281f544724e06d65421a7f52d9 |
| https://github.com/apps/github-actions |
| github-actions | https://github.com/apps/github-actions |
| Jan 16, 2026 | https://github.com/python/typeshed/pull/15160#issuecomment-3759840223 |
| mypy_primer | https://github.com/hauntsaninja/mypy_primer |
| Please reload this page | https://github.com/python/typeshed/pull/15160 |
| https://github.com/srittau |
| srittau | https://github.com/srittau |
|
Jan 16, 2026
| https://github.com/python/typeshed/pull/15160#pullrequestreview-3670716533 |
|
View reviewed changes
| https://github.com/python/typeshed/pull/15160/files/85318868fc25ea281f544724e06d65421a7f52d9 |
| srittau | https://github.com/srittau |
| https://github.com/python/typeshed/pull/15160#pullrequestreview-3670716533 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/typeshed/pull/15160 |
| https://github.com/randolf-scholz |
| randolf-scholz | https://github.com/randolf-scholz |
| Jan 16, 2026 | https://github.com/python/typeshed/pull/15160#issuecomment-3759984548 |
| @srittau | https://github.com/srittau |
| Please reload this page | https://github.com/python/typeshed/pull/15160 |
| https://github.com/randolf-scholz |
| randolf-scholz | https://github.com/randolf-scholz |
| Jan 16, 2026 | https://github.com/python/typeshed/pull/15160#issuecomment-3759992258 |
| Please reload this page | https://github.com/python/typeshed/pull/15160 |
| @AlexWaygood | https://github.com/AlexWaygood |
| #11403 | https://github.com/python/typeshed/pull/11403 |
| Please reload this page | https://github.com/python/typeshed/pull/15160 |
| https://github.com/AlexWaygood |
| AlexWaygood | https://github.com/AlexWaygood |
| Jan 16, 2026 | https://github.com/python/typeshed/pull/15160#issuecomment-3760018286 |
| astral-sh/ty#1132 (comment) | https://github.com/astral-sh/ty/issues/1132#issuecomment-3258116937 |
| astral-sh/ty#1162 | https://github.com/astral-sh/ty/issues/1162 |
| astral-sh/ty#1846 | https://github.com/astral-sh/ty/issues/1846 |
| PyCQA/flake8-pyi#283 (comment) | https://github.com/PyCQA/flake8-pyi/issues/283#issuecomment-1248095891 |
| Please reload this page | https://github.com/python/typeshed/pull/15160 |
| https://github.com/randolf-scholz |
| randolf-scholz | https://github.com/randolf-scholz |
| Jan 16, 2026 | https://github.com/python/typeshed/pull/15160#issuecomment-3760046168 |
| Please reload this page | https://github.com/python/typeshed/pull/15160 |
| https://github.com/AlexWaygood |
| AlexWaygood | https://github.com/AlexWaygood |
| Jan 16, 2026 | https://github.com/python/typeshed/pull/15160#issuecomment-3760054949 |
| Please reload this page | https://github.com/python/typeshed/pull/15160 |
| https://github.com/AlexWaygood |
| AlexWaygood | https://github.com/AlexWaygood |
|
Jan 16, 2026
| https://github.com/python/typeshed/pull/15160#pullrequestreview-3670895400 |
|
View reviewed changes
| https://github.com/python/typeshed/pull/15160/files/85318868fc25ea281f544724e06d65421a7f52d9 |
| https://github.com/AlexWaygood |
| AlexWaygood | https://github.com/AlexWaygood |
| 236a8c0 | https://github.com/python/typeshed/commit/236a8c0b086af0fae009da70e2dc6126b2fd56d9 |
| Jan 16, 2026 | https://github.com/python/typeshed/pull/15160#event-22096057961 |
| Please reload this page | https://github.com/python/typeshed/pull/15160 |
| https://github.com/AlexWaygood |
| AlexWaygood | https://github.com/AlexWaygood |
| Jan 16, 2026 | https://github.com/python/typeshed/pull/15160#issuecomment-3760057279 |
| @randolf-scholz | https://github.com/randolf-scholz |
| Please reload this page | https://github.com/python/typeshed/pull/15160 |
| https://github.com/randolf-scholz |
| randolf-scholz | https://github.com/randolf-scholz |
|
Jan 16, 2026
| https://github.com/python/typeshed/pull/15160#ref-issue-3809530702 |
|
Several methods on built-in types are too strict.
#15271
| https://github.com/python/typeshed/issues/15271 |
| https://github.com/cdce8p |
| cdce8p | https://github.com/cdce8p |
|
Jan 17, 2026
| https://github.com/python/typeshed/pull/15160#ref-pullrequest-3824947144 |
|
Sync typeshed
python/mypy#20605
| https://github.com/python/mypy/pull/20605 |
| https://github.co/hiddenchars |
| https://github.com/python/typeshed/pull/{{ revealButtonHref }} |
| Sign up for free | https://github.com/join?source=comment-repo |
| Sign in to comment | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Ftypeshed%2Fpull%2F15160 |
|
| https://github.com/srittau |
|
srittau
| https://github.com/srittau |
|
| https://github.com/python/typeshed/pull/15160/files/85318868fc25ea281f544724e06d65421a7f52d9 |
|
| https://github.com/AlexWaygood |
|
AlexWaygood
| https://github.com/AlexWaygood |
|
| https://github.com/python/typeshed/pull/15160/files/85318868fc25ea281f544724e06d65421a7f52d9 |
|
Several methods on built-in types are too strict.
| https://github.com/python/typeshed/issues/15271 |
|
Annotations for set.__sub__ and related methods are inconsistent
| https://github.com/python/typeshed/issues/9004 |
| Please reload this page | https://github.com/python/typeshed/pull/15160 |
|
| https://github.com/randolf-scholz |
|
| https://github.com/AlexWaygood |
|
| https://github.com/srittau |
|
| 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 |