Skip to content

Commit

Permalink
Remove incompatible generic type on option_from.
Browse files Browse the repository at this point in the history
  • Loading branch information
AlejandroCabeza committed Sep 2, 2024
1 parent fb8e709 commit 7062f46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rusty_results/prelude.py
Original file line number Diff line number Diff line change
Expand Up @@ -540,7 +540,7 @@ def __get_validators__(cls):
Option = Union[Some[T], Empty]


def option_from[T](value: Optional[T]) -> Option[T]:
def option_from(value: Optional[T]) -> Option[T]:
"""
:param value: Value from any type to be converted to an Option
:return: The value wrapped in an Option or the original Option if it is already an Option
Expand Down

0 comments on commit 7062f46

Please sign in to comment.