Ophir LOJKINE

Results 1257 comments of Ophir LOJKINE

If you want a custom type in your class, the best way is to use a [NewType declaration](https://github.com/lovasoa/marshmallow_dataclass#custom-newtype-declarations)

In order to avoid breaking compatibility, I am simply adding a new warning that will be displayed before marshmallow_dataclass tries to alter a class : > UserWarning: marshmallow_dataclass was called...

@prihoda : Could you make a PR with the changes you want to see on the message ? We'll discuss the changes there.

I think we should keep this open to discuss whether we want to add this behavior or not. Link to PR: #61

Can you describe your use case and what you are trying to achieve ?

I feel like it would make more sense and be easier to just make your id field `init=True`, and optionally create a separate class method if you want to create...

And what would be the issue with defining class methods for creating instances of them ?

Yes, you are right, the documentation is not very clear about how Unions work. PR welcome !