| 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:784f31cd-c39d-a441-dcf5-76850df19335 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | E1AC:185321:11EB26:18EC91:6B006433 |
| html-safe-nonce | e0fe5a2403f9f6be335e6a71a28876d93f52cc47e1cf9fc630fe6cb5a3d44962 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMUFDOjE4NTMyMToxMUVCMjY6MThFQzkxOjZCMDA2NDMzIiwidmlzaXRvcl9pZCI6IjkwMzI5MTEzODMxOTYzNjE3NzkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | c258dea5d493de27af1ab6d50d7e421bd3e51622b67df8fb9350b2981962f827 |
| hovercard-subject-tag | pull_request:1950771203 |
| 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/mypy/pull/17469/files |
| twitter:image | https://avatars.githubusercontent.com/u/41130755?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/41130755?s=400&v=4 |
| og:image:alt | 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 |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 25854482a1773a7c1ebb8be3d2bc1c6e61d82d78126be63b5044474a86d44d9e |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/python/mypy git https://github.com/python/mypy.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 7053637 |
| octolytics-dimension-repository_nwo | python/mypy |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 7053637 |
| octolytics-dimension-repository_network_root_nwo | python/mypy |
| 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 | e4f5c239e31f1f680e6bbc419ff92d774da616ec |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/python/mypy/pull/17469/files#start-of-content |
| https://github.com/ |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fmypy%2Fpull%2F17469%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%2Fmypy%2Fpull%2F17469%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%2Fmypy |
| Reload | https://github.com/python/mypy/pull/17469/files |
| Reload | https://github.com/python/mypy/pull/17469/files |
| Reload | https://github.com/python/mypy/pull/17469/files |
| python | https://github.com/python |
| mypy | https://github.com/python/mypy |
| Code | https://github.com/python/mypy |
| Issues2.7k (2.7k) | https://github.com/python/mypy/issues |
| Pull requests543 (543) | https://github.com/python/mypy/pulls |
| Actions | https://github.com/python/mypy/actions |
| Projects | https://github.com/python/mypy/projects |
| Wiki | https://github.com/python/mypy/wiki |
| Security and quality | https://github.com/python/mypy/security |
| Insights | https://github.com/python/mypy/insights |
| Sign up for GitHub
| https://github.com/signup?return_to=%2Fpython%2Fmypy%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%2Fmypy%2Fissues%2Fnew%2Fchoose |
| JelleZijlstra | https://github.com/JelleZijlstra |
| python:master | https://github.com/python/mypy/tree/master |
| max-muoto:add-dunder-replace-dataclass | https://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 page | https://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 page | https://github.com/python/mypy/pull/17469/files |
| Please reload this page | https://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.py | https://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.test | https://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 page | https://github.com/python/mypy/pull/17469/files |
| Please reload this page | https://github.com/python/mypy/pull/17469/files |
| JelleZijlstra | https://github.com/JelleZijlstra |
| Jul 3, 2024 | https://github.com/python/mypy/pull/17469/files#r1664475183 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/mypy/pull/17469/files |
| max-muoto | https://github.com/max-muoto |
| Jul 3, 2024 | https://github.com/python/mypy/pull/17469/files#r1664476504 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/mypy/pull/17469/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 |