yukinarit
yukinarit
Hi @Yura52! Do you mean that With this serde class, ```python @serde.serde(type_check=serde.Strict) @dataclass class A: b: Optional[int] ``` This should raise an error because the dict has no key of...
Understood, I am okay to have that flag in pyserde, as long as we don't change the default behaviour!
@davetapley Sorry, I missed this. I will work on this next.
Hi @solanav! Although I didn't test inheritance cases enough, I thought inheritance works as expected. But I found field attributes don't work for inherited class for some reason. a. Here...
@solanav A workaround is using flatten. ```python from dataclasses import dataclass from serde import serde, field from serde.json import from_json, to_json @serde @dataclass class Foo: a: int = field(rename="aa") @serde...
Hi sorry for the delay. I was just back from vacation. What will happen if you pass an object with null property to toml?
Hi @TommyDuc Thanks for being interested in pyserde. Yes, those generic classes are not yet supported, but definitely nice features! Unfortunately, I am unable to work on this right now....
I feel it could be fairly easily implemented if you tweak `is_dict` and `is_list` :thinking: https://github.com/yukinarit/pyserde/blob/76e919cc5e2692eb2ba7d194af0655af898191ae/serde/compat.py#L685-L701 https://github.com/yukinarit/pyserde/blob/76e919cc5e2692eb2ba7d194af0655af898191ae/serde/compat.py#L569-L582
Hi @TommyDuc Do you mean a name conflict in generated code? Perhaps you could try absolute path e.g. `typing.Mapping`? I guess it works because `typing` module is [included in the...
Hi @uyha Thanks for a proposal with good example! Yeah, It's nice to have `transparent` feature. Right now, I am working on a pretty big change https://github.com/yukinarit/pyserde/issues/237 right now ([branch](https://github.com/yukinarit/pyserde/commits/rework-strict-typecheck/))....