From 2ea861c9a0fcae54a8293e8a1d818e327f26591b Mon Sep 17 00:00:00 2001 From: sneakers-the-rat Date: Fri, 18 Oct 2024 20:15:15 -0700 Subject: [PATCH] python 3.9 compat --- tests/test_interface/test_interfaces.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_interface/test_interfaces.py b/tests/test_interface/test_interfaces.py index a2eaf82..2537a4e 100644 --- a/tests/test_interface/test_interfaces.py +++ b/tests/test_interface/test_interfaces.py @@ -4,7 +4,7 @@ Tests that should be applied to all interfaces import json from importlib.metadata import version -from typing import Generic, TypeVar +from typing import Generic, TypeVar, Union import dask.array as da import numpy as np @@ -207,7 +207,7 @@ def test_roundtrip_from_union(dtype_by_interface, tmp_output_dir_func): """ class Model(BaseModel): - array: str | dtype_by_interface.annotation + array: Union[str, dtype_by_interface.annotation] array = dtype_by_interface.array(path=tmp_output_dir_func)