Ophir LOJKINE

Results 1257 comments of Ophir LOJKINE

This was introduced by https://github.com/lovasoa/marshmallow_dataclass/pull/189 @noirbee could you take a look at this ?

Ok, someone please step in, and I'll add you as a collaborator to the repo. I have just been merging PRs recently, which have each introduced new bugs, and I...

Hello ! Sorry for the delay ! Looks like there is a type issue on python 3.7

@sloria Do you know why that it ?

We do already support [marshmallow-union](https://python-marshmallow-union.readthedocs.io/en/latest/usage.html), when you install the library with `pip install marshmallow-dataclass[union]`. It has the advantage of being completely transparent, you just specify the type of your data...

Here is a quick example of how to handle ambiguous classes: ```py from marshmallow_dataclass import dataclass from dataclasses import field from typing import List, Union from marshmallow.validate import Equal @dataclass...

You could for instance wrap such a class into another one that would add the disambiguation field. You can flatten the parent class and the child with marshmallow if necessary.

Unfortunately, marshmallow does not seem to support variable length `Tuple`. As per [the documentation](https://marshmallow.readthedocs.io/en/stable/api_reference.html#marshmallow.fields.Tuple): > *class marshmallow.fields.Tuple*: A tuple field, composed of a **fixed number** of other Field classes or...

> How to make frozen dataclass with a list? I think your best bet for now is to create your own `VariableLengthTuple` field. See [marshmallow's documentation on custom fields](https://marshmallow.readthedocs.io/en/stable/custom_fields.html). Then,...

@sloria : Would you consider adding VariadicTuple to marshmallow itself?