mirror of
https://github.com/p2p-ld/numpydantic.git
synced 2025-01-09 13:44:26 +00:00
python 3.9 compat
This commit is contained in:
parent
22f6023d35
commit
2ea861c9a0
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue