Skip to content

Commit

Permalink
Typo
Browse files Browse the repository at this point in the history
  • Loading branch information
sobolevn committed Aug 14, 2024
1 parent 7489302 commit 6402224
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions returns/converters.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import TypeVar, overload
from typing import TypeVar, Union, overload

from returns.functions import identity
from returns.interfaces.bindable import BindableN
Expand Down Expand Up @@ -88,8 +88,8 @@ def maybe_to_result(

def maybe_to_result(
maybe_container: Maybe[_FirstType],
default_error: _SecondType | None = None,
) -> Result[_FirstType, _SecondType | None]:
default_error: Union[_SecondType, None] = None,
) -> Result[_FirstType, Union[_SecondType, None]]:
"""
Converts ``Maybe`` container to ``Result`` container.
Expand Down

0 comments on commit 6402224

Please sign in to comment.