@@ -16,17 +16,17 @@ class MultiscaleMeta(BaseModel):
1616 or ZCM multiscale metadata
1717 """
1818
19- layout : tuple [zcm .ScaleLevel , ...] | MISSING = MISSING
20- resampling_method : str | MISSING = MISSING
21- tile_matrix_set : tms .TileMatrixSet | MISSING = MISSING
22- tile_matrix_limits : dict [str , tms .TileMatrixLimit ] | MISSING = MISSING
19+ layout : tuple [zcm .ScaleLevel , ...] | MISSING = MISSING # type: ignore[valid-type]
20+ resampling_method : str | MISSING = MISSING # type: ignore[valid-type]
21+ tile_matrix_set : tms .TileMatrixSet | MISSING = MISSING # type: ignore[valid-type]
22+ tile_matrix_limits : dict [str , tms .TileMatrixLimit ] | MISSING = MISSING # type: ignore[valid-type]
2323
2424 @model_validator (mode = "after" )
2525 def valid_zcm (self ) -> Self :
2626 """
2727 Ensure that the ZCM metadata, if present, is valid
2828 """
29- if self .layout is not MISSING :
29+ if self .layout is not MISSING : # type: ignore[comparison-overlap]
3030 zcm .Multiscales (** self .model_dump ())
3131
3232 return self
@@ -36,7 +36,7 @@ def valid_tms(self) -> Self:
3636 """
3737 Ensure that the TMS metadata, if present, is valid
3838 """
39- if self .tile_matrix_set is not MISSING :
39+ if self .tile_matrix_set is not MISSING : # type: ignore[comparison-overlap]
4040 tms .Multiscales (** self .model_dump ())
4141
4242 return self
@@ -55,7 +55,7 @@ class MultiscaleGroupAttrs(BaseModel):
5555 multiscales: MultiscaleAttrs
5656 """
5757
58- zarr_conventions : tuple [ConventionMetadataObject , ...] | MISSING = MISSING
58+ zarr_conventions : tuple [ConventionMetadataObject , ...] | MISSING = MISSING # type: ignore[valid-type]
5959 multiscales : MultiscaleMeta
6060
6161 _zcm_multiscales : zcm .Multiscales | None = None
@@ -67,12 +67,12 @@ def valid_zcm_and_tms(self) -> Self:
6767 Ensure that the ZCM metadata, if present, is valid, and that TMS metadata, if present,
6868 is valid, and that at least one of the two is present.
6969 """
70- if self .zarr_conventions is not MISSING :
70+ if self .zarr_conventions is not MISSING : # type: ignore[comparison-overlap]
7171 self ._zcm_multiscales = zcm .Multiscales (
7272 layout = self .multiscales .layout ,
7373 resampling_method = self .multiscales .resampling_method ,
7474 )
75- if self .multiscales .tile_matrix_limits is not MISSING :
75+ if self .multiscales .tile_matrix_limits is not MISSING : # type: ignore[comparison-overlap]
7676 self ._tms_multiscales = tms .Multiscales (
7777 tile_matrix_limits = self .multiscales .tile_matrix_limits ,
7878 resampling_method = self .multiscales .resampling_method , # type: ignore[arg-type]
0 commit comments