Any plan to support unpacking in class? #1756
-
|
I'm making sure about the plan of the feature of unpacking in class. from pydantic_xml import BaseXmlModel, attr
META: dict[str, Any] = {
"nsmap": {"": "http://xxxxxxx"},
"ns": "",
"search_mode": SearchMode.UNORDERED,
}
class UniqueID(BaseXmlModel, **META, tag="UniqueID"):
id: Annotated[str, attr(name="ID")]
id_context: Annotated[str | None, attr(name="ID_Context")] = NoneThe code: Sandbox |
Beta Was this translation helpful? Give feedback.
Answered by
yangdanny97
Dec 4, 2025
Replies: 1 comment
-
|
Since #324 was just completed it's possible to explore this direction, but we have some restrictions on what goes in a base class list to avoid cycles in our analysis so I'm not sure how easy it would be to add. For now I filed #1762 to track this feature request, and we can continue any discussion there |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
yangdanny97
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Since #324 was just completed it's possible to explore this direction, but we have some restrictions on what goes in a base class list to avoid cycles in our analysis so I'm not sure how easy it would be to add.
For now I filed #1762 to track this feature request, and we can continue any discussion there