Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ dependencies = [
"pycountry>=26.2.16,<27",
"pycryptodome>=3.18,<4",
"pydantic-settings>=2.14.1,<3",
"pydantic-xml>=2.20.0,<3",
"pydantic-xml>=2.21.0,<3",
"pydantic[email]>=2.13.4,<3",
"pyinstrument>=5.0,<6",
"PyJWT>=2.8,<3",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ def from_xml(
cls,
source: str | bytes,
context: dict[str, Any] | None = None,
empty_as_string: bool = False,
**kwargs: Any,
) -> Self:
"""
Expand All @@ -55,7 +56,9 @@ def from_xml(
if "parser" not in kwargs:
kwargs["parser"] = etree.XMLParser(recover=True)
try:
return super().from_xml(source, context, **kwargs)
return super().from_xml(
source, context, empty_as_string=empty_as_string, **kwargs
)
except AttributeError:
# Because we are using a very lenient XML parser, we can end up with
# None coming back from the XML parser, which causes an AttributeError
Expand Down
8 changes: 4 additions & 4 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading