Skip to content

Commit

Permalink
Allow None dataType
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulVanSchayck committed Nov 14, 2024
1 parent 94c14fe commit 8a37e6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/covjson_pydantic/ndarray.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class DataType(str, Enum):

class NdArray(CovJsonBaseModel, Generic[NdArrayTypeT], extra="allow"):
type: Literal["NdArray"] = "NdArray"
dataType: DataType = None # noqa: N815
dataType: 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 8a37e6c

Please sign in to comment.