Closed skewty closed 1 month ago
It would be really nice to use NamedTuple with Homogeneous collections as in
class SenderAddress(RootXmlModel[str], tag="address"): pass class SenderName(RootXmlModel[str], tag="name"): pass class Sender(NamedTuple): address: SenderAddress | None name: SenderName | None class SenderData(RootXmlModel, tag="senderdata"): root: list[Sender]
but I get: pydantic_xml.errors.ModelError: type call is not supported.
pydantic_xml.errors.ModelError: type call is not supported
Implemented in version 2.11
It would be really nice to use NamedTuple with Homogeneous collections as in
but I get:
pydantic_xml.errors.ModelError: type call is not supported
.