Skip to content

Commit

Permalink
remove line
Browse files Browse the repository at this point in the history
  • Loading branch information
tlambert03 committed Jan 3, 2025
1 parent 1881445 commit aba74e3
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/ome_types/_mixins/_base_type.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,11 +149,7 @@ def __getattr__(self, key: str) -> Any:
stacklevel=2,
)
return getattr(self, new_key)
# pydantic v2+ has __getattr__
if hasattr(BaseModel, "__getattr__"):
return super().__getattr__(key) # type: ignore
else:
return object.__getattribute__(self, key)
return super().__getattr__(key) # type: ignore

def to_xml(self, **kwargs: Any) -> str:
"""Serialize this object to XML.
Expand Down

0 comments on commit aba74e3

Please sign in to comment.