Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.3k
gh-135368: Fix mocks on dataclass specs withinstance=True#135421
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
Uh oh!
There was an error while loading.Please reload this page.
Extend dataclass mock_methods
python-cla-botbot commentedJun 12, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Not fully sure what's going on there as I've singed the CLA already. There are a handful of merged PRs from me with the same Github user email, e.g.#130191. -- |
Because of the way GitHub messes with authorship on merges, the CLA also needs to be signed for the noted address (I believe there's an option to tie it to a real address for CLA purposes, but this is an area I'm not that familiar with). |
Just clicked on the link above and signed it again although I can even see the Legacy PSF Contributor Agreement there too. Oh well 🤷🏻♂️ Should be all good now. |
c8319a3 intopython:mainUh oh!
There was an error while loading.Please reload this page.
…ythonGH-135421)*pythongh-135368: Fix mocks on dataclass specs with `instance=True`* Extend dataclass mock_methods---------(cherry picked from commitc8319a3)Co-authored-by: sobolevn <mail@sobolevn.me>Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
GH-135503 is a backport of this pull request to the3.14 branch. |
Did this need to go the 3.13 or earlier too? |
Thank you! No,#124429 was never backported to 3.13, because it was a new feature. |
…H-135421) (#135503)gh-135368: Fix mocks on dataclass specs with `instance=True` (GH-135421)*gh-135368: Fix mocks on dataclass specs with `instance=True`* Extend dataclass mock_methods---------(cherry picked from commitc8319a3)Co-authored-by: sobolevn <mail@sobolevn.me>Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
…ython#135421)*pythongh-135368: Fix mocks on dataclass specs with `instance=True`* Extend dataclass mock_methods---------Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
…ython#135421)*pythongh-135368: Fix mocks on dataclass specs with `instance=True`* Extend dataclass mock_methods---------Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
…ython#135421)*pythongh-135368: Fix mocks on dataclass specs with `instance=True`* Extend dataclass mock_methods---------Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
…ython#135421)*pythongh-135368: Fix mocks on dataclass specs with `instance=True`* Extend dataclass mock_methods---------Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
Uh oh!
There was an error while loading.Please reload this page.
cc@ncoghlan,@cdce8p
This brings back two features mentioned in#135368
__class____dataclass_*__featuresBasically, the fix is rather obvious: we just set the proper fields.
__annotations__has changed due to__annotate__function, this is not our fault :)I also have a revert PR ready, if this one is not good enough.
Refs#124429