Hacktoberfest 2026:維護者為十月標記出來的 issue,仍然開放、適合新手。 瀏覽 Hacktoberfest issue

feat: improve deprecation warnings - PEP-387

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

還沒有人認領這個 Issue。

評估

難度
4/5
預估耗時
3-5 天
新手友好度
35/100
Issue 類型
重構
描述清晰度
需要釐清
活躍度
停滯
技術堆疊
python

研究方向

先閱讀 PEP-387 和 issue 檢查清單,然後檢視棄用警告的實作以及支援的 Python 版本。剩下的決定是是否使用 DeprecationWarning;要完成此項工作,需要就這項選擇達成共識,並確保與支援的版本相容;issue 未指定任何檔案或測試。

由索引模型根據 Issue 內容生成。

描述

enhancement

see also: https://peps.python.org/pep-0387/

goal: improve backwards compatibility, while improving Developer experience.

solution

  • move deprecated property warnings to setters
    • via #838
  • annotate deprecated symbols
    • via #839
  • use DeprecationWarning instead of warnings. -- DEBATABLE -- see below
    • requires py8.13

important

we dont have any intention to remove deprecated properties, unless we have a backwards-compatibility layer that guarantees that all supported versions of CycloneDX spec are serializable and deserializable.

implementation

主要語言
Python
星號
117
分支
67
平均合併
3 天 9 小時
30 天內合併 PR
4

環境準備

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

CycloneDX/cyclonedx-python-lib 的其他 Issue

查看 CycloneDX/cyclonedx-python-lib 的全部 Issue

相似的 Issue

更多 Python Issue

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

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