Skip to content

Commit

Permalink
change type ordering
Browse files Browse the repository at this point in the history
  • Loading branch information
ungarj committed Sep 19, 2023
1 parent d56a0ef commit 0e37dc3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mapchete/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class OutputConfigBase(BaseModel):
metatiling: Union[int, None] = 1
pixelbuffer: Union[NonNegativeInt, None] = 0

@field_validator("metatiling", mode='before')
@field_validator("metatiling", mode="before")
def _metatiling(cls, value: int) -> int: # pragma: no cover
_metatiling_opts = [2**x for x in range(10)]
if value not in _metatiling_opts:
Expand All @@ -70,7 +70,7 @@ class PyramidConfig(BaseModel):
metatiling: Union[int, None] = 1
pixelbuffer: Union[NonNegativeInt, None] = 0

@field_validator("metatiling", mode='before')
@field_validator("metatiling", mode="before")
def _metatiling(cls, value: int) -> int: # pragma: no cover
_metatiling_opts = [2**x for x in range(10)]
if value not in _metatiling_opts:
Expand All @@ -88,7 +88,7 @@ class ProcessConfig(BaseModel, arbitrary_types_allowed=True):
config_dir: Union[str, MPath, None] = None
area: Union[str, MPath, BaseGeometry, None] = None
area_crs: Union[dict, str, None] = None
bounds: Union[Tuple[float, float, float, float], Bounds, None] = None
bounds: Union[Bounds, Tuple[float, float, float, float], None] = None
bounds_crs: Union[dict, str, None] = None
process_parameters: Union[dict, None] = None

Expand Down

0 comments on commit 0e37dc3

Please sign in to comment.