From d9115f7a8a4c4db102de68a3472b82a40fdc9246 Mon Sep 17 00:00:00 2001 From: jbusecke Date: Fri, 18 Aug 2023 11:43:34 -0400 Subject: [PATCH] Restor cast import --- pangeo_forge_recipes/transforms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pangeo_forge_recipes/transforms.py b/pangeo_forge_recipes/transforms.py index 34194496..db4ec310 100644 --- a/pangeo_forge_recipes/transforms.py +++ b/pangeo_forge_recipes/transforms.py @@ -4,7 +4,7 @@ import random import sys from dataclasses import dataclass, field -from typing import Callable, Dict, Iterable, Iterator, List, Optional, Tuple, TypeVar +from typing import Callable, Dict, Iterable, Iterator, List, Optional, Tuple, TypeVar, Union, cast # PEP612 Concatenate & ParamSpec are useful for annotating decorators, but their import # differs between Python versions 3.9 & 3.10. See: https://stackoverflow.com/a/71990006