mailerlite-api-python icon indicating copy to clipboard operation
mailerlite-api-python copied to clipboard

Using `make_dataclasses` to handle new keys

Open skoudoro opened this issue 3 years ago • 1 comments

ok, I might have found a solution using make_dataclasses. e.g: https://stackoverflow.com/a/52536584/17925831

I will try to add that this weekend

Originally posted by @skoudoro in https://github.com/skoudoro/mailerlite-api-python/issues/43#issuecomment-1022272703

skoudoro avatar Jan 26 '22 14:01 skoudoro

finally, I use namedtuple and not dataclasses.... so here is a workaround: https://stackoverflow.com/a/28500620/17925831

skoudoro avatar Jan 26 '22 15:01 skoudoro