Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
d-v-b committed Mar 4, 2024
1 parent a365bfa commit 0087042
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/pydantic_ome_ngff/v04/axis.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
from typing import Optional
import warnings

from pydantic import model_validator

from pydantic_ome_ngff.base import StrictVersionedBase
from pydantic_ome_ngff.v04.base import version
Expand Down Expand Up @@ -143,4 +142,4 @@ class Axis(StrictVersionedBase):
_version = version
name: str
type: Optional[str] = None
unit: Optional[str] = None
unit: Optional[str] = None
2 changes: 1 addition & 1 deletion src/pydantic_ome_ngff/v04/label.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def parse_version(version: Literal["0.4"] | None) -> Literal["0.4"] | None:
f"The `version` attribute is `None`. Version {NGFF_VERSION} of "
f"the OME-NGFF spec states that `version` should either be unset or the string {NGFF_VERSION}"
)
# This goes against a recommendation from the spec, but emitting a warning is annoying.
# This goes against a recommendation from the spec, but emitting a warning is annoying.
# leaving this here as a placeholder.
return version

Expand Down
8 changes: 7 additions & 1 deletion src/pydantic_ome_ngff/v04/plate.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
from __future__ import annotations
from typing import List

from pydantic import BaseModel, PositiveInt, ValidationError, field_validator
from pydantic import (
BaseModel,
NonNegativeInt,
PositiveInt,
ValidationError,
field_validator,
)
from pydantic_zarr.v2 import ArraySpec, GroupSpec

from pydantic_ome_ngff.base import VersionedBase
Expand Down

0 comments on commit 0087042

Please sign in to comment.