Title: gh-124176: Add special support for dataclasses to `create_autospec` by sobolevn · Pull Request #124429 · python/cpython · GitHub
Open Graph Title: gh-124176: Add special support for dataclasses to `create_autospec` by sobolevn · Pull Request #124429 · python/cpython
X Title: gh-124176: Add special support for dataclasses to `create_autospec` by sobolevn · Pull Request #124429 · python/cpython
Description: The Python programming language. Contribute to python/cpython development by creating an account on GitHub.
Open Graph Description: Now creating autospecs from dataclass types is easier. We inspect all fields and add them to __dir__, so mock's spec will know about future dataclass instance fields. Issue: Improve UX for mo...
X Description: Now creating autospecs from dataclass types is easier. We inspect all fields and add them to __dir__, so mock's spec will know about future dataclass instance fields. Issue: Improve UX fo...
Opengraph URL: https://github.com/python/cpython/pull/124429
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/commits(.:format) |
| route-controller | pull_requests |
| route-action | commits |
| fetch-nonce | v2:0d0d516c-ab34-5407-c018-f4b0ef796da4 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 9098:2E0AEB:492E3E1:66FC361:6A56CAB3 |
| html-safe-nonce | 03e45c2c3cfcb77652527b1fab1ce0a652bd4a6a9fff4c76e4be4e795e39982e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MDk4OjJFMEFFQjo0OTJFM0UxOjY2RkMzNjE6NkE1NkNBQjMiLCJ2aXNpdG9yX2lkIjoiODcwODAwMzc0NzI2MjI4NjUxNSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 9e58ebae3220b7b4c39e6413190c2100141b305d475cefb20fb07e0fcccbe1d9 |
| hovercard-subject-tag | pull_request:2088756450 |
| 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 | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/python/cpython/pull/124429/commits |
| twitter:image | https://opengraph.githubassets.com/7aff2033ee47ce85185da3c33af8f09433dfa43f673930175c9cbd7a4c069cba/python/cpython/pull/124429 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7aff2033ee47ce85185da3c33af8f09433dfa43f673930175c9cbd7a4c069cba/python/cpython/pull/124429 |
| og:image:alt | Now creating autospecs from dataclass types is easier. We inspect all fields and add them to __dir__, so mock's spec will know about future dataclass instance fields. Issue: Improve UX for mo... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | sobolevn |
| hostname | github.com |
| expected-hostname | github.com |
| None | df99b7164e1d961b639cf5d3cbd6b5ba673edc67bd7e47cdc4746b96099e11ae |
| turbo-cache-control | no-cache |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| 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 | 3146ab55fc8763ab0e1d2a875e600b3a545bc751 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width