Merge branch '3.0.x'

This commit is contained in:
David Lord 2024-10-18 10:03:09 -07:00
commit bca18041b0
No known key found for this signature in database
GPG key ID: 43368A7AA8CC5926
9 changed files with 67 additions and 56 deletions

View file

@ -113,7 +113,7 @@ def _default(o: t.Any) -> t.Any:
return str(o)
if dataclasses and dataclasses.is_dataclass(o):
return dataclasses.asdict(o) # type: ignore[call-overload]
return dataclasses.asdict(o) # type: ignore[arg-type]
if hasattr(o, "__html__"):
return str(o.__html__())