René's URL Explorer Experiment


Title: Add protocols `SequenceLike` and `MappingLike` by srittau · Pull Request #15152 · python/typeshed · GitHub

Open Graph Title: Add protocols `SequenceLike` and `MappingLike` by srittau · Pull Request #15152 · python/typeshed

X Title: Add protocols `SequenceLike` and `MappingLike` by srittau · Pull Request #15152 · python/typeshed

Description: Sequence and Mapping are commonly used in argument types. This can be problematic, since they are not protocols, making it impossible to safely duck type or mock them. Also, not all sequence- or ma...

Open Graph Description: Sequence and Mapping are commonly used in argument types. This can be problematic, since they are not protocols, making it impossible to safely duck type or mock them. Also, not all sequence- or ma...

X Description: Sequence and Mapping are commonly used in argument types. This can be problematic, since they are not protocols, making it impossible to safely duck type or mock them. Also, not all sequence- or ma...

Opengraph URL: https://github.com/python/typeshed/pull/15152

X: @github

direct link

Domain: patch-diff.githubusercontent.com

route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:c06f4b9d-01e9-b8a8-e2d9-cd14914b8ce2
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idC1A6:FDC34:85B81D0:AFB2DEF:696DE16D
html-safe-nonce59bfab5a5bf3970443400a4ccb9ac85a49aa9485d8ac8a865aba9755f5e1ce1f
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMUE2OkZEQzM0Ojg1QjgxRDA6QUZCMkRFRjo2OTZERTE2RCIsInZpc2l0b3JfaWQiOiIzNjU3NDU4MjcxMTYyMDY1MjYxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac07861bc87d0814ef945f07d9b377b4341a78bf3ae7e30cf17961bde63aebd519
hovercard-subject-tagpull_request:3118274173
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/python/typeshed/15152/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/1b3d1d98ed3b48195291eff4687f25b92534967b0bab062e31b115e9dd36a17c/python/typeshed/pull/15152
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/1b3d1d98ed3b48195291eff4687f25b92534967b0bab062e31b115e9dd36a17c/python/typeshed/pull/15152
og:image:altSequence and Mapping are commonly used in argument types. This can be problematic, since they are not protocols, making it impossible to safely duck type or mock them. Also, not all sequence- or ma...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamesrittau
hostnamegithub.com
expected-hostnamegithub.com
None4922b452d03cd8dbce479d866a11bc25b59ef6ee2da23aa9b0ddefa6bd4d0064
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
release7e5ae23c70136152637ceee8d6faceb35596ec46
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/python/typeshed/pull/15152#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Ftypeshed%2Fpull%2F15152
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
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
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://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/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Ftypeshed%2Fpull%2F15152
Sign up https://patch-diff.githubusercontent.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
Reloadhttps://patch-diff.githubusercontent.com/python/typeshed/pull/15152
Reloadhttps://patch-diff.githubusercontent.com/python/typeshed/pull/15152
Reloadhttps://patch-diff.githubusercontent.com/python/typeshed/pull/15152
python https://patch-diff.githubusercontent.com/python
typeshedhttps://patch-diff.githubusercontent.com/python/typeshed
Please reload this pagehttps://patch-diff.githubusercontent.com/python/typeshed/pull/15152
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2Fpython%2Ftypeshed
Fork 2k https://patch-diff.githubusercontent.com/login?return_to=%2Fpython%2Ftypeshed
Star 5k https://patch-diff.githubusercontent.com/login?return_to=%2Fpython%2Ftypeshed
Code https://patch-diff.githubusercontent.com/python/typeshed
Issues 217 https://patch-diff.githubusercontent.com/python/typeshed/issues
Pull requests 130 https://patch-diff.githubusercontent.com/python/typeshed/pulls
Actions https://patch-diff.githubusercontent.com/python/typeshed/actions
Projects 0 https://patch-diff.githubusercontent.com/python/typeshed/projects
Security Uh oh! There was an error while loading. Please reload this page. https://patch-diff.githubusercontent.com/python/typeshed/security
Please reload this pagehttps://patch-diff.githubusercontent.com/python/typeshed/pull/15152
Insights https://patch-diff.githubusercontent.com/python/typeshed/pulse
Code https://patch-diff.githubusercontent.com/python/typeshed
Issues https://patch-diff.githubusercontent.com/python/typeshed/issues
Pull requests https://patch-diff.githubusercontent.com/python/typeshed/pulls
Actions https://patch-diff.githubusercontent.com/python/typeshed/actions
Projects https://patch-diff.githubusercontent.com/python/typeshed/projects
Security https://patch-diff.githubusercontent.com/python/typeshed/security
Insights https://patch-diff.githubusercontent.com/python/typeshed/pulse
Sign up for GitHub https://patch-diff.githubusercontent.com/signup?return_to=%2Fpython%2Ftypeshed%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://patch-diff.githubusercontent.com/login?return_to=%2Fpython%2Ftypeshed%2Fissues%2Fnew%2Fchoose
Jump to bottomhttps://patch-diff.githubusercontent.com/python/typeshed/pull/15152#issue-comment-box
srittauhttps://patch-diff.githubusercontent.com/srittau
python:mainhttps://patch-diff.githubusercontent.com/python/typeshed/tree/main
srittau:like-protoshttps://patch-diff.githubusercontent.com/srittau/typeshed/tree/like-protos
Add protocols SequenceLike and MappingLike https://patch-diff.githubusercontent.com/python/typeshed/pull/15152#top
srittauhttps://patch-diff.githubusercontent.com/srittau
python:mainhttps://patch-diff.githubusercontent.com/python/typeshed/tree/main
srittau:like-protoshttps://patch-diff.githubusercontent.com/srittau/typeshed/tree/like-protos
Conversation 14 https://patch-diff.githubusercontent.com/python/typeshed/pull/15152
Commits 4 https://patch-diff.githubusercontent.com/python/typeshed/pull/15152/commits
Checks 62 https://patch-diff.githubusercontent.com/python/typeshed/pull/15152/checks
Files changed 1 https://patch-diff.githubusercontent.com/python/typeshed/pull/15152/files
https://github.co/hiddenchars
https://patch-diff.githubusercontent.com/python/typeshed/pull/{{ revealButtonHref }}
https://patch-diff.githubusercontent.com/srittau
srittauhttps://patch-diff.githubusercontent.com/srittau
Dec 19, 2025https://patch-diff.githubusercontent.com/python/typeshed/pull/15152#issue-3748271293
Please reload this pagehttps://patch-diff.githubusercontent.com/python/typeshed/pull/15152
srittauhttps://patch-diff.githubusercontent.com/srittau
December 19, 2025 18:35https://patch-diff.githubusercontent.com/python/typeshed/pull/15152#commits-pushed-7e0faae
https://patch-diff.githubusercontent.com/srittau
Add protocols SequenceLike and MappingLikehttps://patch-diff.githubusercontent.com/python/typeshed/pull/15152/commits/7e0faae42366db22471e98110e4d118224770631
7e0faaehttps://patch-diff.githubusercontent.com/python/typeshed/pull/15152/commits/7e0faae42366db22471e98110e4d118224770631
https://patch-diff.githubusercontent.com/marketplace/pre-commit-ci
[pre-commit.ci] auto fixes from pre-commit.com hookshttps://patch-diff.githubusercontent.com/python/typeshed/pull/15152/commits/cf4ac68777b94582e7d8f0b0e324a877f53476fe
cf4ac68https://patch-diff.githubusercontent.com/python/typeshed/pull/15152/commits/cf4ac68777b94582e7d8f0b0e324a877f53476fe
https://patch-diff.githubusercontent.com/srittau
srittauhttps://patch-diff.githubusercontent.com/srittau
Dec 19, 2025 https://patch-diff.githubusercontent.com/python/typeshed/pull/15152#ref-pullrequest-3744178379
Fully typed setuptools setup method #15146 https://patch-diff.githubusercontent.com/python/typeshed/pull/15146
https://patch-diff.githubusercontent.com/apps/github-actions
Sign in to viewhttps://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Ftypeshed%2Fpull%2F15152
https://patch-diff.githubusercontent.com/Avasam
Avasamhttps://patch-diff.githubusercontent.com/Avasam
Dec 20, 2025 https://patch-diff.githubusercontent.com/python/typeshed/pull/15152#ref-pullrequest-3458388571
networkx: Update usages of SupportsGetItem that should be more restrictive #14795 https://patch-diff.githubusercontent.com/python/typeshed/pull/14795
https://patch-diff.githubusercontent.com/JelleZijlstra
JelleZijlstrahttps://patch-diff.githubusercontent.com/JelleZijlstra
Dec 22, 2025https://patch-diff.githubusercontent.com/python/typeshed/pull/15152#issuecomment-3683900039
Please reload this pagehttps://patch-diff.githubusercontent.com/python/typeshed/pull/15152
https://patch-diff.githubusercontent.com/srittau
srittauhttps://patch-diff.githubusercontent.com/srittau
Dec 22, 2025https://patch-diff.githubusercontent.com/python/typeshed/pull/15152#issuecomment-3683970596
Please reload this pagehttps://patch-diff.githubusercontent.com/python/typeshed/pull/15152
https://patch-diff.githubusercontent.com/srittau
srittauhttps://patch-diff.githubusercontent.com/srittau
Dec 22, 2025https://patch-diff.githubusercontent.com/python/typeshed/pull/15152#issuecomment-3683974528
PyCQA/flake8-pyi#525https://github.com/PyCQA/flake8-pyi/pull/525
Please reload this pagehttps://patch-diff.githubusercontent.com/python/typeshed/pull/15152
https://patch-diff.githubusercontent.com/jorenham
jorenhamhttps://patch-diff.githubusercontent.com/jorenham
Dec 28, 2025 https://patch-diff.githubusercontent.com/python/typeshed/pull/15152#pullrequestreview-3614714832
View reviewed changes https://patch-diff.githubusercontent.com/python/typeshed/pull/15152/files/cf4ac68777b94582e7d8f0b0e324a877f53476fe
jorenhamhttps://patch-diff.githubusercontent.com/jorenham
https://patch-diff.githubusercontent.com/python/typeshed/pull/15152#pullrequestreview-3614714832
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://patch-diff.githubusercontent.com/python/typeshed/pull/15152
stdlib/_typeshed/__init__.pyihttps://patch-diff.githubusercontent.com/python/typeshed/pull/15152/files/cf4ac68777b94582e7d8f0b0e324a877f53476fe#diff-a3613e85580869c0367d2d8a73f77fa3d00185b5ffee724958f7ddd69d865793
Please reload this pagehttps://patch-diff.githubusercontent.com/python/typeshed/pull/15152
stdlib/_typeshed/__init__.pyihttps://patch-diff.githubusercontent.com/python/typeshed/pull/15152/files/cf4ac68777b94582e7d8f0b0e324a877f53476fe#diff-a3613e85580869c0367d2d8a73f77fa3d00185b5ffee724958f7ddd69d865793
Please reload this pagehttps://patch-diff.githubusercontent.com/python/typeshed/pull/15152
stdlib/_typeshed/__init__.pyihttps://patch-diff.githubusercontent.com/python/typeshed/pull/15152/files/cf4ac68777b94582e7d8f0b0e324a877f53476fe#diff-a3613e85580869c0367d2d8a73f77fa3d00185b5ffee724958f7ddd69d865793
Please reload this pagehttps://patch-diff.githubusercontent.com/python/typeshed/pull/15152
https://patch-diff.githubusercontent.com/srittau
Return SequenceLike from __getitem__https://patch-diff.githubusercontent.com/python/typeshed/pull/15152/commits/357ed1f297601fa0b9434ac8c847cc97796f5c2a
357ed1fhttps://patch-diff.githubusercontent.com/python/typeshed/pull/15152/commits/357ed1f297601fa0b9434ac8c847cc97796f5c2a
https://patch-diff.githubusercontent.com/apps/github-actions
Sign in to viewhttps://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Ftypeshed%2Fpull%2F15152
https://patch-diff.githubusercontent.com/srittau
Use Any for value argument of __contains__https://patch-diff.githubusercontent.com/python/typeshed/pull/15152/commits/346757fa30c935841fcee095d7c75c92831024f9
346757fhttps://patch-diff.githubusercontent.com/python/typeshed/pull/15152/commits/346757fa30c935841fcee095d7c75c92831024f9
https://patch-diff.githubusercontent.com/apps/github-actions
github-actionshttps://patch-diff.githubusercontent.com/apps/github-actions
Jan 14, 2026https://patch-diff.githubusercontent.com/python/typeshed/pull/15152#issuecomment-3749024492
mypy_primerhttps://github.com/hauntsaninja/mypy_primer
Please reload this pagehttps://patch-diff.githubusercontent.com/python/typeshed/pull/15152
Sign up for freehttps://patch-diff.githubusercontent.com/join?source=comment-repo
Sign in to commenthttps://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Ftypeshed%2Fpull%2F15152
https://patch-diff.githubusercontent.com/JelleZijlstra
JelleZijlstra https://patch-diff.githubusercontent.com/JelleZijlstra
https://patch-diff.githubusercontent.com/python/typeshed/pull/15152/files/cf4ac68777b94582e7d8f0b0e324a877f53476fe
https://patch-diff.githubusercontent.com/jorenham
jorenham https://patch-diff.githubusercontent.com/jorenham
https://patch-diff.githubusercontent.com/python/typeshed/pull/15152/files/cf4ac68777b94582e7d8f0b0e324a877f53476fe
Please reload this pagehttps://patch-diff.githubusercontent.com/python/typeshed/pull/15152
https://patch-diff.githubusercontent.com/srittau
https://patch-diff.githubusercontent.com/JelleZijlstra
https://patch-diff.githubusercontent.com/jorenham
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.