Clarify JSON marshalling of `Decimal` values
还没有人认领这个 Issue。
评估
调研方向
阅读 src/crate/client/http.py 的第 105-106 行,然后比较链接的 meltano-target-cratedb 参考内容和 issue #52 中所示的 Decimal 处理方式。确定 Decimal 值所需的 JSON 表示形式,并记录或测试约定的行为;当该表示形式得到明确说明并经过一致验证时,issue 即完成。
由索引模型根据 Issue 内容生成。
描述
About
How to marshal values of Python's Decimal type.
Status quo
Currently, the library is conveying Decimal values as strings.
See also
Others apparently need serialization to float.
if isinstance(obj, Decimal):
return float(obj)
References
- 主要语言
- Python
- 星标
- 85
- 派生
- 37
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
crate/crate-python 的其他 Issue
-
[Security] tarfile.extractall without member validation in src/crate/testing/layer.py可能已有人在做 @theluckystrike 于 2 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 68/100
crate/crate-python#794 · 2 条评论 ·
-
A percent sign in a statement reaches the server doubled可能已有人在做 @florinutz 于 8 天前认领。 未关闭bug
crate/crate-python#853 · 已指派 1 人 ·
-
cursor.description's type_code is always None, even though col_types is already available internally可能已有人在做 @rnovatorov 于 11 天前认领。 未关闭
难度 3/5 1-2 天 新手友好度 72/100
crate/crate-python#837 · 2 条评论 ·
-
NUMERIC reads: full digits arrive, the decode drops them可能已有人在做 @aminghadersohi 于 69 天前认领。 未关闭bug
难度 4/5 3-5 天 新手友好度 52/100
crate/crate-python#826 · 1 条评论 ·
-
难度 3/5 1-2 天 新手友好度 35/100
crate/crate-python#729 · 1 条评论 ·
查看 crate/crate-python 的全部 Issue
相似的 Issue
-
bug(operator): VolterraOperator built inside jax.jit with a concrete decay raises TracerBoolConversionError可能已有人在做 @jejjohnson 今天认领。 未关闭type:bug
难度 2/5 1-3 小时 新手友好度 72/100
jejjohnson/integrix#144 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 74/100
finos/ai-governance-framework#459 ·
-
难度 2/5 1-3 小时 新手友好度 72/100
autowarefoundation/autoware_carla_scenario#2963 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 78/100
freelawproject/litigant-portal#1307 ·
维护者通常 2 天内回复
-
type/bug
难度 1/5 1 小时以内 新手友好度 86/100
h2oai/h2o-llmstudio#1163 ·
维护者通常 1 天内回复