dry-python / dry-python/returns
Consider adding `Lazy` protocol
未关闭
enhancement
good first issue
hacktoberfest
help wanted
- 主要语言
- Python
- 星标
- 4.4k
- 派生
- 155
- 平均合并
- 2 小时 27 分钟
- 30 天内合并 PR
- 22
描述
We can add `Lazy = () => A` protocol to `returns.primitives.types`
This might be helpful when working with `IO` when someone want to slow things down.
One should use `Protocol` and `__call__` to model this type.
贡献指南
调研方向
首先阅读 returns.primitives.types 以及 issue 中提到的 IO 相关用法。确认预期的泛型 callable 形状,以及它应如何在那里公开。完成的标准是 Lazy 协议对返回 A 的 callable 进行建模,并且其类型行为已由项目现有的检查覆盖。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- python
- 领域
- developer-experience
- Issue 类型
- 功能
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100