♻️ revert more TypedDict changes and fix line length

This commit is contained in:
Ondrej Samohel 2025-06-19 10:07:20 +02:00
parent 1c63b75a27
commit a3c04d232a
No known key found for this signature in database
GPG key ID: 02376E18990A97C6

View file

@ -242,7 +242,7 @@ class VersionItem:
def __le__(self, other):
return self.__eq__(other) or self.__lt__(other)
def to_data(self) -> VersionItemData:
def to_data(self) -> dict[str, Any]:
return {
"version_id": self.version_id,
"product_id": self.product_id,
@ -262,7 +262,7 @@ class VersionItem:
}
@classmethod
def from_data(cls, data: VersionItemData):
def from_data(cls, data: dict[str, Any]) -> VersionItem:
return cls(**data)
@ -362,8 +362,9 @@ class ActionItem:
# future development of detached UI tools it would be better to be
# prepared for it.
raise NotImplementedError(
f"{self.__class__.__name__}.to_data is not implemented. Use Attribute definitions"
" from 'ayon_core.lib' instead of 'qargparse'."
f"{self.__class__.__name__}.to_data is not implemented. "
"Use Attribute definitions "
"from 'ayon_core.lib' instead of 'qargparse'."
)
def to_data(self):