可以通过 json.dumps 转换为 JSON 字符串的值有: - 标量:数字和字符串 - 容器:映射和可迭代
Union[str, int, float, Mapping, Iterable]
你有更好的建议吗?
mypy
mypy ×1