Improve annotation styling (#118032)

This commit is contained in:
Marc Mueller 2024-05-24 15:05:53 +02:00 committed by GitHub
parent 2308ff2cbf
commit dd22ee3dac
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
24 changed files with 41 additions and 35 deletions

View file

@ -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)),