|
1 | 1 | from abc import abstractmethod |
2 | | -from typing import Callable, ClassVar, NoReturn, Sequence, Type, TypeVar, final |
| 2 | +from typing import Callable, ClassVar, Sequence, Type, TypeVar, final |
| 3 | + |
| 4 | +from typing_extensions import Never |
3 | 5 |
|
4 | 6 | from returns.interfaces import container as _container |
5 | 7 | from returns.interfaces import lashable, swappable |
@@ -73,7 +75,7 @@ class FailableN( |
73 | 75 |
|
74 | 76 |
|
75 | 77 | #: Type alias for kinds with two type arguments. |
76 | | -Failable2 = FailableN[_FirstType, _SecondType, NoReturn] |
| 78 | +Failable2 = FailableN[_FirstType, _SecondType, Never] |
77 | 79 |
|
78 | 80 | #: Type alias for kinds with three type arguments. |
79 | 81 | Failable3 = FailableN[_FirstType, _SecondType, _ThirdType] |
@@ -154,7 +156,7 @@ def empty( |
154 | 156 |
|
155 | 157 |
|
156 | 158 | #: Type alias for kinds with two types arguments. |
157 | | -SingleFailable2 = SingleFailableN[_FirstType, _SecondType, NoReturn] |
| 159 | +SingleFailable2 = SingleFailableN[_FirstType, _SecondType, Never] |
158 | 160 |
|
159 | 161 | #: Type alias for kinds with three type arguments. |
160 | 162 | SingleFailable3 = SingleFailableN[_FirstType, _SecondType, _ThirdType] |
@@ -258,7 +260,7 @@ def from_failure( |
258 | 260 |
|
259 | 261 |
|
260 | 262 | #: Type alias for kinds with two type arguments. |
261 | | -DiverseFailable2 = DiverseFailableN[_FirstType, _SecondType, NoReturn] |
| 263 | +DiverseFailable2 = DiverseFailableN[_FirstType, _SecondType, Never] |
262 | 264 |
|
263 | 265 | #: Type alias for kinds with three type arguments. |
264 | 266 | DiverseFailable3 = DiverseFailableN[_FirstType, _SecondType, _ThirdType] |
0 commit comments