jsonquerylang / jsonquerylang/jsonquery-python
Python 3.14 Compatibility
未关闭
还没有人认领这个 Issue。
- 主要语言
- Python
- 星标
- 55
- 派生
- 3
- PR 合并指标
- 30 天内没有已合并 PR
描述
$ pip list | grep jsonq
jsonquerylang 2.0.1
$ python
Python 3.14.0 (main, Oct 10 2025, 12:47:49) [Clang 20.1.4 ] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import jsonquerylang
Traceback (most recent call last):
File "<python-input-0>", line 1, in <module>
import jsonquerylang
File "/.../site-packages/jsonquerylang/__init__.py", line 1, in <module>
from jsonquerylang.jsonquery import jsonquery
File "/.../site-packages/jsonquerylang/jsonquery.py", line 1, in <module>
from jsonquerylang.compile import compile
File "/.../site-packages/jsonquerylang/compile.py", line 4, in <module>
from jsonquerylang.types import JsonQueryType, JsonType, JsonQueryOptions
File "/.../site-packages/jsonquerylang/types.py", line 4, in <module>
List["JsonValueType"] | Mapping[str, "JsonValueType"] | "JsonValueType"
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
TypeError: unsupported operand type(s) for |: 'typing.Union' and 'str'
>>>
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
阅读 jsonquerylang/types.py,尤其是第 4 行报告的注解,然后使用 Python 3.14 重现导入失败。通过验证在 Python 3.14 上导入 jsonquerylang 时不会出现报告的 TypeError,确认兼容性更改。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- python
- 领域
- backend
- Issue 类型
- 缺陷
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 48/100