dry-python / dry-python/returns

Consider adding `to_iterable` converter

Open
#391 7 comments 0 reactions 1 assignee Claimed by @thepabloaguilar View on GitHub
enhancement help wanted
Dominant language
Python
Stars
4.4k
Forks
155
Avg merge
2h 27m
Merged PRs (30d)
22

Description

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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.