Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: to_etree_element #201

Merged
merged 6 commits into from
Jul 12, 2023
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
quote the type hint
  • Loading branch information
tlambert03 committed Jul 12, 2023
commit 4c5fc2fe0623f442372be8e1d76541e77e8ba15c
2 changes: 1 addition & 1 deletion src/xsdata_pydantic_basemodel/compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class AnyElement(BaseModel):
class Config:
arbitrary_types_allowed = True

def to_etree_element(self) -> ET._Element:
def to_etree_element(self) -> "ET._Element":
elem = ET.Element(self.qname or "", self.attributes)
elem.text = self.text
elem.tail = self.tail
Expand Down