Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stop using asdict to handle dataclasses #2561

Merged
merged 1 commit into from
Oct 28, 2021

Conversation

wjsi
Copy link
Member

@wjsi wjsi commented Oct 28, 2021

What do these changes do?

Stop using std function dataclasses.asdict to handle dataclasses as it uses deepcopy for non-collection objects, see

https://github.com/python/cpython/blob/0a68b3603fbc0aaf9eeb8ce8b42b78d6fa7cfa78/Lib/dataclasses.py#L1273

Related issue number

@wjsi wjsi added type: bug Something isn't working to be backported Indicate that the PR need to be backported to stable branch mod: meta service labels Oct 28, 2021
@wjsi wjsi added this to the v0.9.0a1 milestone Oct 28, 2021
@wjsi wjsi requested a review from qinxuye as a code owner October 28, 2021 11:24
Copy link
Collaborator

@qinxuye qinxuye left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@hekaisheng hekaisheng left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@hekaisheng hekaisheng merged commit 86bbdd0 into mars-project:master Oct 28, 2021
@wjsi wjsi deleted the bugfix/dataclass_copy branch October 28, 2021 15:44
wjsi added a commit to wjsi/mars that referenced this pull request Oct 28, 2021
@qinxuye qinxuye added backported already PR has been backported and removed to be backported Indicate that the PR need to be backported to stable branch labels Oct 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backported already PR has been backported mod: meta service type: bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants