Skip to content

Commit

Permalink
Linting
Browse files Browse the repository at this point in the history
  • Loading branch information
rhugonnet committed Jan 26, 2024
1 parent b433391 commit 09de140
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions geoutils/raster/raster.py
Original file line number Diff line number Diff line change
Expand Up @@ -1943,7 +1943,7 @@ def crop(
crop_geom: RasterType | Vector | list[float] | tuple[float, ...],
mode: Literal["match_pixel"] | Literal["match_extent"] = "match_pixel",
*,
inplace: Literal[False] = ...,
inplace: Literal[False] = False,
) -> RasterType:
...

Expand All @@ -1963,7 +1963,7 @@ def crop(
crop_geom: RasterType | Vector | list[float] | tuple[float, ...],
mode: Literal["match_pixel"] | Literal["match_extent"] = "match_pixel",
*,
inplace: bool = ...,
inplace: bool = False,
) -> RasterType | None:
...

Expand Down Expand Up @@ -2085,8 +2085,8 @@ def reproject(
dtype: DTypeLike | None = None,
resampling: Resampling | str = Resampling.bilinear,
force_source_nodata: int | float | None = None,
*,
inplace: Literal[False] = ...,
*,
inplace: Literal[False] = False,
silent: bool = False,
n_threads: int = 0,
memory_limit: int = 64,
Expand Down Expand Up @@ -2126,7 +2126,7 @@ def reproject(
resampling: Resampling | str = Resampling.bilinear,
force_source_nodata: int | float | None = None,
*,
inplace: bool = ...,
inplace: bool = False,
silent: bool = False,
n_threads: int = 0,
memory_limit: int = 64,
Expand Down Expand Up @@ -3588,7 +3588,7 @@ def reproject(
resampling: Resampling | str = Resampling.nearest,
force_source_nodata: int | float | None = None,
*,
inplace: Literal[True] = ...,
inplace: Literal[True],
silent: bool = False,
n_threads: int = 0,
memory_limit: int = 64,
Expand All @@ -3608,7 +3608,7 @@ def reproject(
resampling: Resampling | str = Resampling.nearest,
force_source_nodata: int | float | None = None,
*,
inplace: bool = ...,
inplace: bool = False,
silent: bool = False,
n_threads: int = 0,
memory_limit: int = 64,
Expand Down Expand Up @@ -3662,9 +3662,9 @@ def reproject(
output._data = output.data.astype(bool) # type: ignore

if inplace:
self._transform = output.transform
self._crs = output.crs
self.data = output._data
self._transform = output._transform # type: ignore
self._crs = output._crs # type: ignore
self.data = output._data # type: ignore
return None
else:
return output
Expand All @@ -3677,7 +3677,7 @@ def crop(
crop_geom: Mask | Vector | list[float] | tuple[float, ...],
mode: Literal["match_pixel"] | Literal["match_extent"] = "match_pixel",
*,
inplace: Literal[False] = ...,
inplace: Literal[False] = False,
) -> Mask:
...

Expand All @@ -3697,7 +3697,7 @@ def crop(
crop_geom: Mask | Vector | list[float] | tuple[float, ...],
mode: Literal["match_pixel"] | Literal["match_extent"] = "match_pixel",
*,
inplace: bool = ...,
inplace: bool = False,
) -> Mask | None:
...

Expand Down

0 comments on commit 09de140

Please sign in to comment.