-
-
Notifications
You must be signed in to change notification settings - Fork 124
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Consider adding to_iterable
converter
#391
Comments
to_iterable
convertedto_iterable
converter
I am really tired for now. Let's move it to the next release. |
We have a problem with HKT here, it can't convert @kinded
def to_iterable(
container: KindN[
_ContainerKind, Sequence[_FirstType], _SecondType, _ThirdType
]
) -> Sequence[KindN[_ContainerKind, _FirstType, _SecondType, _ThirdType]]:
... mypy output:
Do you want to open an issue for this? |
Ok, I see. Any ideas on how to support it? |
I don't have any ideas 😞 |
Ok, we should change how But, to fully support this, we need python/mypy#9001 to be released. |
I'm excited waiting for the next |
After #244 we now have
.from_iterable
constructor on every container.We should also add
to_iterable(container: Container[Sequence[T]]) -> Iterable[Container[T]]:
(whereContainer
is just an alias, we should support types for all existing containers).So, this will allow us to construct and deconstruct values easily.
The text was updated successfully, but these errors were encountered: