Skip to content

Remove dataclass emulation - #2285

Merged
certik merged 3 commits into
lcompilers:mainfrom
ubaidsk:remove_dataclass_emulation
Aug 19, 2023
Merged

Remove dataclass emulation#2285
certik merged 3 commits into
lcompilers:mainfrom
ubaidsk:remove_dataclass_emulation

Conversation

@ubaidsk

Copy link
Copy Markdown
Collaborator

towards #2276, #2274

@ubaidsk
ubaidsk marked this pull request as draft August 19, 2023 14:13
@ubaidsk
ubaidskforce-pushed the remove_dataclass_emulation branch from 7377ff9 to ba6507dCompareAugust 19, 2023 14:29
@ubaidsk

ubaidsk commented Aug 19, 2023

Copy link
Copy Markdown
CollaboratorAuthor

I think this PR would hopefully pass after rebasing on top of #2284.

PS: Reference tests might need to be updated. I will complete it after the rebase.

@certik
certikforce-pushed the remove_dataclass_emulation branch from ba6507d to 0017058CompareAugust 19, 2023 19:12
arg.__class_getitem__ = __class_getitem__

return py_dataclass(arg)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Beautiful! That's exactly what we need.

@ubaidsk
ubaidskforce-pushed the remove_dataclass_emulation branch from 0017058 to 8759288CompareAugust 19, 2023 19:37
@ubaidsk
ubaidsk marked this pull request as ready for review August 19, 2023 19:41
@ubaidsk
ubaidsk requested a review from certikAugust 19, 2023 19:43

@certikcertik left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think this works! Thanks, great job.

@certik
certik merged commit 8c42eaf into lcompilers:mainAug 19, 2023
@ubaidsk
ubaidsk deleted the remove_dataclass_emulation branch August 19, 2023 21:24
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@ubaidsk@certik