Closed bstrie closed 3 years ago
Thanks for the pull request!
I like this idea. The only concern I have is that Python 3.6 is still in support until the end of the year.
There is a backported dataclasses
module available on PyPi however, so I still think it's OK to move forward with this.
I'll just put a note in the README for the next release.
Rebased.
Thank you very much! I'll try to get a new release out soon.
While playing around with esper I noticed that making components involved a bit of boilerplate:
I solved this by using Python's
dataclasses.dataclass
decorator, imported ascomponent
:I thought this looked a bit nicer, so here's a patch that exposes this as
esper.component
, adds a note in the readme, and updates some examples to use it.