Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
Signed-off-by: Merel Theisen <merel.theisen@quantumblack.com>
  • Loading branch information
merelcht committed Jan 4, 2024
1 parent fcce1d8 commit 5134b04
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions kedro-datasets/kedro_datasets/xarray/geotiff_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,13 @@

from copy import deepcopy
from pathlib import PurePosixPath
from typing import Any, Dict
from typing import Any

import fsspec
import rioxarray as rxr
import xarray
from kedro.io.core import Version, get_filepath_str, get_protocol_and_path

from kedro.io import AbstractVersionedDataset, DatasetError
from kedro.io.core import Version, get_filepath_str, get_protocol_and_path


class GeoTiffDataset(AbstractVersionedDataset[xarray.DataArray, xarray.DataArray]):
Expand Down Expand Up @@ -50,16 +49,16 @@ class GeoTiffDataset(AbstractVersionedDataset[xarray.DataArray, xarray.DataArray
"""

DEFAULT_LOAD_ARGS: Dict[str, Any] = {}
DEFAULT_SAVE_ARGS: Dict[str, Any] = {}
DEFAULT_LOAD_ARGS: dict[str, Any] = {}
DEFAULT_SAVE_ARGS: dict[str, Any] = {}

def __init__( # noqa: PLR0913
self,
filepath: str,
load_args: Dict[str, Any] = None,
save_args: Dict[str, Any] = None,
load_args: dict[str, Any] = None,
save_args: dict[str, Any] = None,
version: Version = None,
metadata: Dict[str, Any] = None,
metadata: dict[str, Any] = None,
):
"""Creates a new instance of ``GeoTiffDataset`` pointing to a concrete
tiff or tif file with geospatial data.
Expand Down Expand Up @@ -120,7 +119,7 @@ def _exists(self) -> bool:

return self._fs.exists(load_path)

def _describe(self) -> Dict[str, Any]:
def _describe(self) -> dict[str, Any]:
return {
"filepath": self._filepath,
"load_args": self._load_args,
Expand Down

0 comments on commit 5134b04

Please sign in to comment.