Skip to content

Commit

Permalink
use _ytBaseModel
Browse files Browse the repository at this point in the history
  • Loading branch information
chrishavlin committed Feb 12, 2024
1 parent 5fe2425 commit f5107b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/yt_napari/_data_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ class Region(_ytBaseModel):
rescale: bool = Field(False, description="rescale the final image between 0,1")


class CoveringGrid(BaseModel):
class CoveringGrid(_ytBaseModel):
fields: List[ytField] = Field(
None, description="list of fields to load for this selection"
)
Expand All @@ -86,7 +86,7 @@ class CoveringGrid(BaseModel):
rescale: bool = Field(False, description="rescale the final image between 0,1")


class Slice(BaseModel):
class Slice(_ytBaseModel):
fields: List[ytField] = Field(
None, description="list of fields to load for this selection"
)
Expand Down

0 comments on commit f5107b3

Please sign in to comment.