Skip to content
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

Add from_optional helper method to Option #19

Closed
rksouthee opened this issue Nov 22, 2023 · 2 comments
Closed

Add from_optional helper method to Option #19

rksouthee opened this issue Nov 22, 2023 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@rksouthee
Copy link

I've ran into a few scenarios where I need to convert from typing.Optional[T] to rusty_results.Option[T] and was wondering if we could add a helper function that would create an Option[T] from an Optional[T], something like Option[T].from_optional.

@check69
Copy link
Collaborator

check69 commented Nov 22, 2023

Nice suggestion, we will add this in the next version. Thanks!

@check69 check69 self-assigned this Nov 23, 2023
@check69 check69 added the enhancement New feature or request label Nov 23, 2023
@AlejandroCabeza
Copy link
Collaborator

Resolved with #20.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants