Skip to content

Commit

Permalink
Remove ValuesAxis[int]
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulVanSchayck committed Mar 29, 2024
1 parent 6387a2f commit 8e5adc0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 25 deletions.
10 changes: 5 additions & 5 deletions src/covjson_pydantic/domain.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@


class CompactAxis(CovJsonBaseModel):
start: Union[int, float]
stop: Union[int, float]
start: float
stop: float
num: PositiveInt

@model_validator(mode="after")
Expand Down Expand Up @@ -56,9 +56,9 @@ class DomainType(str, Enum):


class Axes(CovJsonBaseModel):
x: Optional[Union[ValuesAxis[int], ValuesAxis[float], ValuesAxis[str], CompactAxis]] = None
y: Optional[Union[ValuesAxis[int], ValuesAxis[float], ValuesAxis[str], CompactAxis]] = None
z: Optional[Union[ValuesAxis[int], ValuesAxis[float], ValuesAxis[str], CompactAxis]] = None
x: Optional[Union[ValuesAxis[float], ValuesAxis[str], CompactAxis]] = None
y: Optional[Union[ValuesAxis[float], ValuesAxis[str], CompactAxis]] = None
z: Optional[Union[ValuesAxis[float], ValuesAxis[str], CompactAxis]] = None
t: Optional[ValuesAxis[AwareDatetime]] = None
composite: Optional[ValuesAxis[Tuple]] = None

Expand Down
1 change: 0 additions & 1 deletion tests/test_coverage.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

happy_cases = [
("spec-axes.json", Axes),
("int-axes.json", Axes),
("str-axes.json", Axes),
("coverage-json.json", Coverage),
("doc-example-coverage.json", Coverage),
Expand Down
19 changes: 0 additions & 19 deletions tests/test_data/int-axes.json

This file was deleted.

0 comments on commit 8e5adc0

Please sign in to comment.