jsonquerylang / jsonquerylang/jsonquery-python

Python 3.14 Compatibility

未關閉
#6 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 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'
>>>

貢獻指南

這個儲存庫沒有索引到貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 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

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。