dry-python / dry-python/returns
Consider adding `to_iterable` converter
Offen
#391
7 Kommentare
0 Reaktionen
1 zugewiesene Person
Beansprucht von @thepabloaguilar
Auf GitHub ansehen
enhancement
help wanted
- Vorherrschende Sprache
- Python
- Sterne
- 4.4k
- Forks
- 155
- Ø Merge
- 2 Std. 27 Min.
- Gemergte PRs (30 T.)
- 22
Beschreibung
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.
Beitragsleitfaden
Bewertung
Dieses Issue wurde noch nicht bewertet.