René's URL Explorer Experiment


Title: Add `__replace__` for dataclasses by max-muoto · Pull Request #17469 · python/mypy · GitHub

Open Graph Title: Add `__replace__` for dataclasses by max-muoto · Pull Request #17469 · python/mypy

X Title: Add `__replace__` for dataclasses by max-muoto · Pull Request #17469 · python/mypy

Description: Add __replace__, which is now present on dataclasses in 3.13, which is creating false alarms in TypeShed on dataclasses, and is needed for copy.replace to work properly. Fixes #17471

Open Graph Description: Add __replace__, which is now present on dataclasses in 3.13, which is creating false alarms in TypeShed on dataclasses, and is needed for copy.replace to work properly. Fixes #17471

X Description: Add __replace__, which is now present on dataclasses in 3.13, which is creating false alarms in TypeShed on dataclasses, and is needed for copy.replace to work properly. Fixes #17471

Opengraph URL: https://github.com/python/mypy/pull/17469

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/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:784f31cd-c39d-a441-dcf5-76850df19335
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idE1AC:185321:11EB26:18EC91:6B006433
html-safe-noncee0fe5a2403f9f6be335e6a71a28876d93f52cc47e1cf9fc630fe6cb5a3d44962
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMUFDOjE4NTMyMToxMUVCMjY6MThFQzkxOjZCMDA2NDMzIiwidmlzaXRvcl9pZCI6IjkwMzI5MTEzODMxOTYzNjE3NzkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacc258dea5d493de27af1ab6d50d7e421bd3e51622b67df8fb9350b2981962f827
hovercard-subject-tagpull_request:1950771203
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///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/python/mypy/pull/17469/files
twitter:imagehttps://avatars.githubusercontent.com/u/41130755?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/41130755?s=400&v=4
og:image:altAdd __replace__, which is now present on dataclasses in 3.13, which is creating false alarms in TypeShed on dataclasses, and is needed for copy.replace to work properly. Fixes #17471
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None25854482a1773a7c1ebb8be3d2bc1c6e61d82d78126be63b5044474a86d44d9e
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/python/mypy git https://github.com/python/mypy.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id7053637
octolytics-dimension-repository_nwopython/mypy
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id7053637
octolytics-dimension-repository_network_root_nwopython/mypy
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasee4f5c239e31f1f680e6bbc419ff92d774da616ec
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/mypy/pull/17469/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fmypy%2Fpull%2F17469%2Ffiles
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%2Fmypy%2Fpull%2F17469%2Ffiles
Sign uphttps://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%2Fmypy
Reloadhttps://github.com/python/mypy/pull/17469/files
Reloadhttps://github.com/python/mypy/pull/17469/files
Reloadhttps://github.com/python/mypy/pull/17469/files
pythonhttps://github.com/python
mypyhttps://github.com/python/mypy
Codehttps://github.com/python/mypy
Issues2.7k (2.7k)https://github.com/python/mypy/issues
Pull requests543 (543)https://github.com/python/mypy/pulls
Actionshttps://github.com/python/mypy/actions
Projectshttps://github.com/python/mypy/projects
Wikihttps://github.com/python/mypy/wiki
Security and qualityhttps://github.com/python/mypy/security
Insightshttps://github.com/python/mypy/insights
Sign up for GitHub https://github.com/signup?return_to=%2Fpython%2Fmypy%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fpython%2Fmypy%2Fissues%2Fnew%2Fchoose
JelleZijlstrahttps://github.com/JelleZijlstra
python:masterhttps://github.com/python/mypy/tree/master
max-muoto:add-dunder-replace-dataclasshttps://github.com/max-muoto/mypy/tree/add-dunder-replace-dataclass
Conversation 22 https://github.com/python/mypy/pull/17469
Commits 26 https://github.com/python/mypy/pull/17469/commits
Checks 0 https://github.com/python/mypy/pull/17469/checks
Files changed https://github.com/python/mypy/pull/17469/files
Please reload this pagehttps://github.com/python/mypy/pull/17469/files
Add __replace__ for dataclasses https://github.com/python/mypy/pull/17469/files#top
Show all changes 26 commits https://github.com/python/mypy/pull/17469/files
b0a0190 Add dunder replace max-muoto Jul 3, 2024 https://github.com/python/mypy/pull/17469/commits/b0a0190e04f7cabbdd42024777589918808a56e4
df19ef3 [pre-commit.ci] auto fixes from pre-commit.com hooks pre-commit-ci[bot] Jul 3, 2024 https://github.com/python/mypy/pull/17469/commits/df19ef39c44fe0498970deb91d4231831042f838
6ab41c9 Limit to 3.13 max-muoto Jul 3, 2024 https://github.com/python/mypy/pull/17469/commits/6ab41c9f100cf0c6545a9348e9cb2b7b2a178bff
986c1fc Merge branch 'add-dunder-replace-dataclass' of https://github.com/max… max-muoto Jul 3, 2024 https://github.com/python/mypy/pull/17469/commits/986c1fc06de3563848f7e2d9ee2ffeca6c1d06a8
9a143a2 Add flag for test max-muoto Jul 3, 2024 https://github.com/python/mypy/pull/17469/commits/9a143a2a08ab60ff87344f79efa096098fd16570
1be9150 Fix typing issue max-muoto Jul 3, 2024 https://github.com/python/mypy/pull/17469/commits/1be91501bd8fb49c1fa0b9aab3dc13fc4497af9e
2d45728 Formatting max-muoto Jul 3, 2024 https://github.com/python/mypy/pull/17469/commits/2d457282016520e106610e1a3b6902f70a822f81
90cd81a Add fixture max-muoto Jul 3, 2024 https://github.com/python/mypy/pull/17469/commits/90cd81a738ae5f09043eb9cdc29aae6a2177eb7e
6b9f491 Correct fixture max-muoto Jul 3, 2024 https://github.com/python/mypy/pull/17469/commits/6b9f491b18d793f8bfe3d4d9b098ed3d11b86012
aaf1fd7 [pre-commit.ci] auto fixes from pre-commit.com hooks pre-commit-ci[bot] Jul 3, 2024 https://github.com/python/mypy/pull/17469/commits/aaf1fd77c9f2d0a27f8ec3f1ebd80a36394078c4
4e9a553 Tweak max-muoto Jul 3, 2024 https://github.com/python/mypy/pull/17469/commits/4e9a553b98f456142ff256b037d7bd3e0e179f9a
fda2699 Merge branch 'add-dunder-replace-dataclass' of https://github.com/max… max-muoto Jul 3, 2024 https://github.com/python/mypy/pull/17469/commits/fda26999d91209cb659ac53e71f8169b6e7c6f9b
dbb6dc3 [pre-commit.ci] auto fixes from pre-commit.com hooks pre-commit-ci[bot] Jul 3, 2024 https://github.com/python/mypy/pull/17469/commits/dbb6dc38316b29ea887f38d96987b7dcdad8938f
5269ef9 Fix max-muoto Jul 3, 2024 https://github.com/python/mypy/pull/17469/commits/5269ef91f19ce1ebbd8f2c55a755599283482a25
16b0db8 fix max-muoto Jul 3, 2024 https://github.com/python/mypy/pull/17469/commits/16b0db8d89f1451cc037f2303ecd832640ce75c7
e3f2b73 Expand tests max-muoto Jul 3, 2024 https://github.com/python/mypy/pull/17469/commits/e3f2b73e48d106b683a35770eef8d193bd2c815d
0338aee FIx misnamed max-muoto Jul 3, 2024 https://github.com/python/mypy/pull/17469/commits/0338aeeb67e409dde840e6fc1ba817523eade486
bdfa9fb Add unexpected kwarg max-muoto Jul 3, 2024 https://github.com/python/mypy/pull/17469/commits/bdfa9fbe659c3be943a2c65109c8557889868ae8
2b4ea78 Fix max-muoto Jul 3, 2024 https://github.com/python/mypy/pull/17469/commits/2b4ea7843943171d7632ab0542437cc872970efa
3291c48 Add generics test max-muoto Jul 3, 2024 https://github.com/python/mypy/pull/17469/commits/3291c4837f194de12a3e5c5884f2fcd5b222e4e7
b733e35 Missing TV max-muoto Jul 3, 2024 https://github.com/python/mypy/pull/17469/commits/b733e35724281a31e64e4d07351dda0e5151280a
14b7ef6 Missing import max-muoto Jul 3, 2024 https://github.com/python/mypy/pull/17469/commits/14b7ef610226b0ae99e80c112457aa7a7f36c386
56555c7 Fixes max-muoto Jul 3, 2024 https://github.com/python/mypy/pull/17469/commits/56555c7877a8d4539f12bc375a591e44593b8a12
7422270 Fix max-muoto Jul 3, 2024 https://github.com/python/mypy/pull/17469/commits/74222709fb7b7b318ef76e687dac79253754f158
a1e11f1 Preserve generic info max-muoto Jul 3, 2024 https://github.com/python/mypy/pull/17469/commits/a1e11f1fecf6bae73e7b5736bddbd5e0b009de8f
30df8b7 Update test-data/unit/check-dataclasses.test max-muoto Jul 3, 2024 https://github.com/python/mypy/pull/17469/commits/30df8b714e00f267ebdf23578cbc861d832a69dc
Clear filters https://github.com/python/mypy/pull/17469/files
Please reload this pagehttps://github.com/python/mypy/pull/17469/files
Please reload this pagehttps://github.com/python/mypy/pull/17469/files
dataclasses.py https://github.com/python/mypy/pull/17469/files#diff-1fdad80f805993800524fbb9b684cc3d09879f54a0e51c71f2a447c7d46c1eb4
check-dataclasses.test https://github.com/python/mypy/pull/17469/files#diff-5379cab042a82b77ec5dffbbe846636f62f6c7482d537a998b285f7629ea1888
mypy/plugins/dataclasses.pyhttps://github.com/python/mypy/pull/17469/files#diff-1fdad80f805993800524fbb9b684cc3d09879f54a0e51c71f2a447c7d46c1eb4
View file https://github.com/max-muoto/mypy/blob/30df8b714e00f267ebdf23578cbc861d832a69dc/mypy/plugins/dataclasses.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/mypy/pull/17469/{{ revealButtonHref }}
https://github.com/python/mypy/pull/17469/files#diff-1fdad80f805993800524fbb9b684cc3d09879f54a0e51c71f2a447c7d46c1eb4
https://github.com/python/mypy/pull/17469/files#diff-1fdad80f805993800524fbb9b684cc3d09879f54a0e51c71f2a447c7d46c1eb4
https://github.com/python/mypy/pull/17469/files#diff-1fdad80f805993800524fbb9b684cc3d09879f54a0e51c71f2a447c7d46c1eb4
test-data/unit/check-dataclasses.testhttps://github.com/python/mypy/pull/17469/files#diff-5379cab042a82b77ec5dffbbe846636f62f6c7482d537a998b285f7629ea1888
View file https://github.com/max-muoto/mypy/blob/30df8b714e00f267ebdf23578cbc861d832a69dc/test-data/unit/check-dataclasses.test
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/mypy/pull/17469/{{ revealButtonHref }}
https://github.com/python/mypy/pull/17469/files#diff-5379cab042a82b77ec5dffbbe846636f62f6c7482d537a998b285f7629ea1888
Please reload this pagehttps://github.com/python/mypy/pull/17469/files
Please reload this pagehttps://github.com/python/mypy/pull/17469/files
JelleZijlstrahttps://github.com/JelleZijlstra
Jul 3, 2024https://github.com/python/mypy/pull/17469/files#r1664475183
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/mypy/pull/17469/files
max-muotohttps://github.com/max-muoto
Jul 3, 2024https://github.com/python/mypy/pull/17469/files#r1664476504
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/mypy/pull/17469/files
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.