Improve annotation styling (#118032)
This commit is contained in:
parent
2308ff2cbf
commit
dd22ee3dac
24 changed files with 41 additions and 35 deletions
|
@ -483,7 +483,7 @@ class AutoOffExtraStoredData(ExtraStoredData):
|
|||
|
||||
def as_dict(self) -> dict[str, Any]:
|
||||
"""Return a dict representation of additional data."""
|
||||
auto_off_time: datetime | None | dict[str, str] = self.auto_off_time
|
||||
auto_off_time: datetime | dict[str, str] | None = self.auto_off_time
|
||||
if isinstance(auto_off_time, datetime):
|
||||
auto_off_time = {
|
||||
"__type": str(type(auto_off_time)),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue