mirror of
https://github.com/home-assistant/core.git
synced 2025-07-29 18:28:14 +02:00
Fix most sphinx documentation warnings (#101228)
This commit is contained in:
@ -115,7 +115,7 @@ def json_bytes_strip_null(data: Any) -> bytes:
|
||||
|
||||
|
||||
def json_dumps(data: Any) -> str:
|
||||
"""Dump json string.
|
||||
r"""Dump json string.
|
||||
|
||||
orjson supports serializing dataclasses natively which
|
||||
eliminates the need to implement as_dict in many places
|
||||
@ -124,7 +124,7 @@ def json_dumps(data: Any) -> str:
|
||||
be serialized.
|
||||
|
||||
If it turns out to be a problem we can disable this
|
||||
with option |= orjson.OPT_PASSTHROUGH_DATACLASS and it
|
||||
with option \|= orjson.OPT_PASSTHROUGH_DATACLASS and it
|
||||
will fallback to as_dict
|
||||
"""
|
||||
return json_bytes(data).decode("utf-8")
|
||||
|
Reference in New Issue
Block a user