Skip to content

Commit

Permalink
Support Python 3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulVanSchayck committed Nov 14, 2024
1 parent 8a37e6c commit 4fffc8b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/covjson_pydantic/ndarray.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
from typing import List
from typing import Literal
from typing import Optional
from typing import Union

from pydantic import model_validator
from typing_extensions import Generic
Expand All @@ -23,7 +24,7 @@ class DataType(str, Enum):

class NdArray(CovJsonBaseModel, Generic[NdArrayTypeT], extra="allow"):
type: Literal["NdArray"] = "NdArray"
dataType: DataType | None = None # noqa: N815
dataType: Union[DataType, None] = None # noqa: N815
axisNames: Optional[List[str]] = None # noqa: N815
shape: Optional[List[int]] = None
values: List[Optional[NdArrayTypeT]] = []
Expand Down

0 comments on commit 4fffc8b

Please sign in to comment.