Skip to content

Added dataclass example to MenuConfig#1

Merged
zedr merged 1 commit intozedr:masterfrom
zacharyaanglin:master
Mar 10, 2019
Merged

Added dataclass example to MenuConfig#1
zedr merged 1 commit intozedr:masterfrom
zacharyaanglin:master

Conversation

@zacharyaanglin
Copy link
Copy Markdown
Contributor

I leveraged the astuple function from dataclasses in order to maintain the same tuple unpacking semantics. This may not be the most canonical way to accomplish the goal using a dataclass, so feedback welcome!

I'm a big fan of this resource and of 3.7 dataclasses. Thanks for all you guys do!

Copy link
Copy Markdown
Owner

@zedr zedr left a comment

Choose a reason for hiding this comment

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

Thanks for your contribution!

@zedr zedr merged commit 4941720 into zedr:master Mar 10, 2019
Sign up for free to 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