Skip to content

Commit 231b3b2

Browse files
committed
fix: Use Union compatible with <3.10
1 parent c3f5da1 commit 231b3b2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

marshmallow_dataclass/generic_resolver.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
Optional,
1010
Tuple,
1111
TypeVar,
12+
Union,
1213
)
1314

1415
import typing_inspect
@@ -59,7 +60,7 @@ class _Future(Generic[_U]):
5960

6061
_done: bool
6162
_result: _U
62-
_default: _U | "_Future[_U]"
63+
_default: Union[_U, "_Future[_U]"]
6364

6465
def __init__(self, default=NoDefault) -> None:
6566
self._done = False

0 commit comments

Comments
 (0)