Add type hints?
未關閉
還沒有人認領這個 Issue。
- 主要語言
- Python
- 星號
- 1k
- 分支
- 203
- 平均合併
- 1 小時 20 分鐘
- 30 天內合併 PR
- 2
描述
How would we feel about adding type hints to the pyperformance codebase?
Running a type checker on pyperformance might catch some bugs. But more importantly, in my opinion, it would make some parts of the code base a lot easier to read and reason about -- it would be self-evident what kind of object is being accepted and returned by various functions.
There are various tools that we could use to add "obvious" type hints quickly to the code base, such as autotyping and MonkeyType.
貢獻指南
這個儲存庫沒有索引到貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
未指定檔案或測試。首先檢視 pyperformance 程式碼庫,並評估 autotyping 和 MonkeyType 是否適合作為起點。完成的要求是確定一個關於新增型別提示的共識範圍,以及一種能夠提高可讀性並發現錯誤的型別檢查方法。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- python
- 領域
- tooling
- Issue 類型
- 重構
- 難度
- 5/5
- 預估耗時
- 一週以上
- 活躍度
- 停滯
- 描述清晰度
- 需要釐清
- 新手友好度
- 25/100