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

Try to provide default implementation for some interfaces

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

維護者通常 1 天內回覆

還沒有人認領這個 Issue。

評估

難度
5/5
預估耗時
一週以上
新手友好度
25/100
Issue 類型
重構
描述清晰度
需要釐清
活躍度
停滯
技術堆疊
python
領域
api

研究方向

檢視涉及 .map 和 .from_iterable 的介面與容器方法,然後閱讀相關 issue #598 和 #495。判斷哪些方法可以在維持型別的同時安全地接收共用的預設實作,並記錄或測試需要非預設實作的情況。

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

描述

enhancement

For example, .map is just return self.__class__(function(self._inner_value)) in many cases.
There are also other methods that can be possibly have defaults.
Or .from_iterable also is the same for every container.

But, we need to check that:

  1. Typing works correctly
  2. In case if method needs a non-default implementation, we can know it in advance

Related #598
Related #495

主要語言
Python
星號
4.4k
分支
156
平均合併
3 小時 44 分鐘
30 天內合併 PR
22

環境準備

從這裡開始

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

dry-python/returns 的其他 Issue

查看 dry-python/returns 的全部 Issue

相似的 Issue

更多 Python Issue

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

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