From 640222455967ea58474ae19255d4974d45ac9498 Mon Sep 17 00:00:00 2001 From: sobolevn Date: Wed, 14 Aug 2024 17:36:21 +0300 Subject: [PATCH] Typo --- returns/converters.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/returns/converters.py b/returns/converters.py index ee0bd673..864fb9ca 100644 --- a/returns/converters.py +++ b/returns/converters.py @@ -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 @@ -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.