René's URL Explorer Experiment


Title: Refine the `copy._SupportsReplace.__replace__` signature by jorenham · Pull Request #14786 · python/typeshed · GitHub

Open Graph Title: Refine the `copy._SupportsReplace.__replace__` signature by jorenham · Pull Request #14786 · python/typeshed

X Title: Refine the `copy._SupportsReplace.__replace__` signature by jorenham · Pull Request #14786 · python/typeshed

Description: Collection of library stubs for Python, with static types - Refine the `copy._SupportsReplace.__replace__` signature by jorenham · Pull Request #14786 · python/typeshed

Open Graph Description: The (non-existent) *args: Any and **kwargs: Any can be avoided by relying on the LSP and removing them altogether, making it a bit less incorrect :) Well, I wasn't able to make it work with pyr...

X Description: The (non-existent) *args: Any and **kwargs: Any can be avoided by relying on the LSP and removing them altogether, making it a bit less incorrect :) Well, I wasn't able to make it work with...

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

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
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:aa29673e-6d9e-dc11-cb3d-382ee23e8937
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idD2FA:B7CF9:CABF04:10E5312:6B004F33
html-safe-nonceadcd435d6a4982802e5cc61ec889dd2ab7deb84747bb5e00f7855bdaf15c868b
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMkZBOkI3Q0Y5OkNBQkYwNDoxMEU1MzEyOjZCMDA0RjMzIiwidmlzaXRvcl9pZCI6IjU2NTIyNzAwNDgxNTczODg1OTYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmaca4b4474d92ae61e539f3bb8c6e47ad35d5b0d6aa4748684c6f1964194ec1ae7c
hovercard-subject-tagpull_request:2862201475
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/14786/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/95f9b647efda57ea0cba664afe5c0b6ed7cc8c5643d11efdd3e9905cd109f58b/python/typeshed/pull/14786
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/95f9b647efda57ea0cba664afe5c0b6ed7cc8c5643d11efdd3e9905cd109f58b/python/typeshed/pull/14786
og:image:altThe (non-existent) *args: Any and **kwargs: Any can be avoided by relying on the LSP and removing them altogether, making it a bit less incorrect :) Well, I wasn't able to make it work with pyr...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamejorenham
hostnamegithub.com
expected-hostnamegithub.com
Nonef9517bf360d46638a1e5e7daee7158842fe5ef43c9000afa0e127564a7c2f39b
turbo-cache-controlno-cache
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
releaseb27c5dde30676028abd5c5fc53ce5c9b625f8281
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/python/typeshed/pull/14786#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Ftypeshed%2Fpull%2F14786
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
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
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://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/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Ftypeshed%2Fpull%2F14786
Sign uphttps://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
Reloadhttps://github.com/python/typeshed/pull/14786
Reloadhttps://github.com/python/typeshed/pull/14786
Reloadhttps://github.com/python/typeshed/pull/14786
pythonhttps://github.com/python
typeshedhttps://github.com/python/typeshed
Codehttps://github.com/python/typeshed
Issues196 (196)https://github.com/python/typeshed/issues
Pull requests252 (252)https://github.com/python/typeshed/pulls
Actionshttps://github.com/python/typeshed/actions
Security and qualityhttps://github.com/python/typeshed/security
Insightshttps://github.com/python/typeshed/insights
https://github.com/python/typeshed
srittauhttps://github.com/srittau
python:mainhttps://github.com/python/typeshed/tree/main
jorenham:copy._SupportsReplace.__replace__https://github.com/jorenham/typeshed/tree/copy._SupportsReplace.__replace__
Conversationhttps://github.com/python/typeshed/pull/14786
Commits6 (6)https://github.com/python/typeshed/pull/14786/commits
Checkshttps://github.com/python/typeshed/pull/14786/checks
Files changedhttps://github.com/python/typeshed/pull/14786/files
Refine the copy._SupportsReplace.__replace__ signaturehttps://github.com/python/typeshed/pull/14786#top
srittauhttps://github.com/srittau
python:mainhttps://github.com/python/typeshed/tree/main
jorenham:copy._SupportsReplace.__replace__https://github.com/jorenham/typeshed/tree/copy._SupportsReplace.__replace__
https://github.com/jorenham
jorenhamhttps://github.com/jorenham
Sep 26, 2025https://github.com/python/typeshed/pull/14786#issue-3455373673
Please reload this pagehttps://github.com/python/typeshed/pull/14786
Please reload this pagehttps://github.com/python/typeshed/pull/14786
https://github.com/jorenham
Refine the copy._SupportsReplace.__replace__ signaturehttps://github.com/python/typeshed/pull/14786/commits/0403f9df7455573034fae3f57bb5b86128a11d03
0403f9dhttps://github.com/python/typeshed/pull/14786/commits/0403f9df7455573034fae3f57bb5b86128a11d03
https://github.com/apps/github-actions
Sign in to viewhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Ftypeshed%2Fpull%2F14786
https://github.com/jorenham
Sign in to viewhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Ftypeshed%2Fpull%2F14786
https://github.com/jorenham
support for asymmetric __replace__ in copy.replacehttps://github.com/python/typeshed/pull/14786/commits/b93847dd85701d2eff22de96c373433a816d2121
b93847dhttps://github.com/python/typeshed/pull/14786/commits/b93847dd85701d2eff22de96c373433a816d2121
https://github.com/apps/github-actions
Sign in to viewhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Ftypeshed%2Fpull%2F14786
https://github.com/AlexWaygood
AlexWaygoodhttps://github.com/AlexWaygood
Sep 26, 2025 https://github.com/python/typeshed/pull/14786#pullrequestreview-3271555936
View reviewed changes https://github.com/python/typeshed/pull/14786/files/b93847dd85701d2eff22de96c373433a816d2121
AlexWaygoodhttps://github.com/AlexWaygood
https://github.com/python/typeshed/pull/14786#pullrequestreview-3271555936
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
https://github.com/python/typeshed/blob/main/stdlib/%40tests/test_cases/check_copy.pyhttps://github.com/python/typeshed/blob/main/stdlib/%40tests/test_cases/check_copy.py
Please reload this pagehttps://github.com/python/typeshed/pull/14786
https://github.com/jorenham
copy.replace regression test for asymmetric __replace__https://github.com/python/typeshed/pull/14786/commits/6ba4ca7e33f5a2599385cc55afdba86a5ab10234
6ba4ca7https://github.com/python/typeshed/pull/14786/commits/6ba4ca7e33f5a2599385cc55afdba86a5ab10234
https://github.com/jorenham
jorenhamhttps://github.com/jorenham
Sep 26, 2025https://github.com/python/typeshed/pull/14786#issuecomment-3340595488
main/stdlib/%40tests/test_cases/check_copy.pyhttps://github.com/python/typeshed/blob/main/stdlib/%40tests/test_cases/check_copy.py?rgh-link-date=2025-09-26T10%3A35%3A06Z
Please reload this pagehttps://github.com/python/typeshed/pull/14786
https://github.com/apps/github-actions
Sign in to viewhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Ftypeshed%2Fpull%2F14786
https://github.com/srittau
srittauhttps://github.com/srittau
Sep 30, 2025 https://github.com/python/typeshed/pull/14786#pullrequestreview-3283765057
View reviewed changes https://github.com/python/typeshed/pull/14786/files/6ba4ca7e33f5a2599385cc55afdba86a5ab10234
srittauhttps://github.com/srittau
https://github.com/python/typeshed/pull/14786#pullrequestreview-3283765057
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/typeshed/pull/14786
stdlib/copy.pyihttps://github.com/python/typeshed/pull/14786/files/6ba4ca7e33f5a2599385cc55afdba86a5ab10234#diff-e58d89d3b4aeeea6858ac3ee1e6becc162da13c4cb6af2cbfccbceef10365c2a
Please reload this pagehttps://github.com/python/typeshed/pull/14786
stdlib/copy.pyihttps://github.com/python/typeshed/pull/14786/files/6ba4ca7e33f5a2599385cc55afdba86a5ab10234#diff-e58d89d3b4aeeea6858ac3ee1e6becc162da13c4cb6af2cbfccbceef10365c2a
Please reload this pagehttps://github.com/python/typeshed/pull/14786
stdlib/@tests/test_cases/check_copy.pyhttps://github.com/python/typeshed/pull/14786/files/6ba4ca7e33f5a2599385cc55afdba86a5ab10234#diff-57c0ce5b9482eae15b859f6a5ab6e89254e5554fcc350f68f6985660e43a0706
Please reload this pagehttps://github.com/python/typeshed/pull/14786
jorenhamhttps://github.com/jorenham
September 30, 2025 19:55https://github.com/python/typeshed/pull/14786#commits-pushed-4449936
https://github.com/jorenham
don't use ParamSpec copy._SupportsReplacehttps://github.com/python/typeshed/pull/14786/commits/4449936463df0a2a588036d3cd72e3f02c442913
4449936https://github.com/python/typeshed/pull/14786/commits/4449936463df0a2a588036d3cd72e3f02c442913
https://github.com/jorenham
https://github.com/srittau
add comment explaining the use of Any in copy.replacehttps://github.com/python/typeshed/pull/14786/commits/8f09cc4344c2adbca952be8d139f1b0a60c664e1
8f09cc4https://github.com/python/typeshed/pull/14786/commits/8f09cc4344c2adbca952be8d139f1b0a60c664e1
https://github.com/jorenham
https://github.com/srittau
avoid using Any in the copy.replace testshttps://github.com/python/typeshed/pull/14786/commits/ce839dfeab95304dd69c9e2618103a0d666567d6
ce839dfhttps://github.com/python/typeshed/pull/14786/commits/ce839dfeab95304dd69c9e2618103a0d666567d6
https://github.com/jorenham
jorenhamhttps://github.com/jorenham
Sep 30, 2025 https://github.com/python/typeshed/pull/14786#ref-issue-3470582942
Method-bound type-parameter can "leak" through a Protocol microsoft/pyright#10976 https://github.com/microsoft/pyright/issues/10976
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
Sep 30, 2025https://github.com/python/typeshed/pull/14786#issuecomment-3353325841
mypy_primerhttps://github.com/hauntsaninja/mypy_primer
Please reload this pagehttps://github.com/python/typeshed/pull/14786
https://github.com/srittau
srittauhttps://github.com/srittau
Sep 30, 2025 https://github.com/python/typeshed/pull/14786#pullrequestreview-3286221191
View reviewed changes https://github.com/python/typeshed/pull/14786/files/ce839dfeab95304dd69c9e2618103a0d666567d6
srittauhttps://github.com/srittau
https://github.com/python/typeshed/pull/14786#pullrequestreview-3286221191
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/typeshed/pull/14786
https://github.com/srittau
srittauhttps://github.com/srittau
91055c7https://github.com/python/typeshed/commit/91055c730ffcda6311654cf32d663858ece69bad
Sep 30, 2025https://github.com/python/typeshed/pull/14786#event-20016756449
https://github.com/jorenham
jorenhamhttps://github.com/jorenham
September 30, 2025 18:27https://github.com/python/typeshed/pull/14786#event-20016761398
https://github.com/sharkdp
sharkdphttps://github.com/sharkdp
Oct 1, 2025 https://github.com/python/typeshed/pull/14786#ref-pullrequest-3471551124
[ty] Sync vendored typeshed stubs astral-sh/ruff#20658 https://github.com/astral-sh/ruff/pull/20658
copy.replace type inference regression: breaks Self-returning __replace__ with bound TypeVar python/mypy#21672 https://github.com/python/mypy/issues/21672
copy.replace: _SupportsReplace[RT] breaks Self-returning __replace__ with bound TypeVar #15973 https://github.com/python/typeshed/issues/15973
https://github.com/apoorva-01
apoorva-01https://github.com/apoorva-01
Jul 11, 2026 https://github.com/python/typeshed/pull/14786#ref-pullrequest-4859672144
Fix copy.replace widening a bound TypeVar to its bound #15997 https://github.com/python/typeshed/pull/15997
copy.replace rejects a union whose members each have a field the others lack (since #14819) #16582 https://github.com/python/typeshed/issues/16582
replace: a union or union-bound TypeVar comes back as Struct (mypy), and a union whose members each have their own field is rejected (pyright, ty) JPHutchins/salix#359 https://github.com/JPHutchins/salix/issues/359
https://github.co/hiddenchars
https://github.com/python/typeshed/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Ftypeshed%2Fpull%2F14786
https://github.com/AlexWaygood
AlexWaygood https://github.com/AlexWaygood
https://github.com/python/typeshed/pull/14786/files/b93847dd85701d2eff22de96c373433a816d2121
https://github.com/srittau
srittau https://github.com/srittau
https://github.com/python/typeshed/pull/14786/files/ce839dfeab95304dd69c9e2618103a0d666567d6
Please reload this pagehttps://github.com/python/typeshed/pull/14786
Please reload this pagehttps://github.com/python/typeshed/pull/14786
https://github.com/jorenham
https://github.com/srittau
https://github.com/AlexWaygood
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.