diff.patch returns wrong dates in Python 3.10
未关闭
还没有人认领这个 Issue。
- 主要语言
- Python
- 星标
- 1.7k
- 派生
- 408
- 平均合并
- 2 天 57 分钟
- 30 天内合并 PR
- 7
描述
The newest version of arrow library doesn't have timestamp property anymore, only method.
When I try to run the pygit2 with latest arrow (arrow==1.2.2) I get this in the output of diff.patch:
diff --git a/ff637b965cc54980ba5d852d662d0793 b/ff637b965cc54980ba5d852d662d0793
index d88c807..1d33f32 100644
--- a/ff637b965cc54980ba5d852d662d0793 +++ b/ff637b965cc54980ba5d852d662d0793 @@ -62,7 +62,9 @@ "content": "We should work on this",
"custom_fields": [],
"date_created": "<bound method Arrow.timestamp of <Arrow [2022-02-02T14:55:22.090307+00:00]>>",
- "depends": [],
+ "depends": [ + "3" + ], "full_url": "http://localhost.localdomain/test/issue/1",
"id": 1,
"last_updated": "<bound method Arrow.timestamp of <Arrow [2022-02-02T14:55:23.637241+00:00]>>",
As you can see there is only a reference to method instead of value.
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
从格式化所显示日期的 diff.patch 路径开始,追踪 Arrow 时间戳的序列化方式。使用 Python 3.10 和 arrow==1.2.2 重现输出,然后验证 diff.patch 包含的是时间戳值,而不是 bound-method 表示形式。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- git, python
- 领域
- devtools
- Issue 类型
- 缺陷
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100