Fix most sphinx documentation warnings (#101228)

This commit is contained in:
Dave T
2023-10-02 08:01:41 +01:00
committed by GitHub
parent f2cf87b0b7
commit 99a76ef4e6
5 changed files with 6 additions and 13 deletions

View File

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