dry-python / dry-python/returns

Consider adding `to_iterable` converter

未关闭
#391 7 条评论 0 个 reaction 已指派 1 人 已被 @thepabloaguilar 认领 在 GitHub 查看
enhancement help wanted
主要语言
Python
星标
4.4k
派生
155
平均合并
2 小时 27 分钟
30 天内合并 PR
22

描述

After #244 we now have `.from_iterable` constructor on every container.

We should also add `to_iterable(container: Container[Sequence[T]]) -> Iterable[Container[T]]:` (where `Container` is just an alias, we should support types for all existing containers).
So, this will allow us to construct and deconstruct values easily.

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。