Skip to content

Commit

Permalink
chore: use | in favor of tuples for isinstance checks
Browse files Browse the repository at this point in the history
Signed-off-by: Felix Scherz <felixwscherz@gmail.com>
  • Loading branch information
felixscherz committed Oct 7, 2024
1 parent b0c7c45 commit a3ab836
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ def load(self) -> NoReturn:
def save(self, data: Figure | (list[Figure] | dict[str, Figure])) -> None:
save_path = self._get_save_path()

if isinstance(data, (list, dict)) and self._overwrite and self._exists():
if isinstance(data, list | dict) and self._overwrite and self._exists():
self._fs.rm(get_filepath_str(save_path, self._protocol), recursive=True)

if isinstance(data, list):
Expand Down
1 change: 0 additions & 1 deletion kedro-datasets/tests/spark/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
import pytest
from delta import configure_spark_with_delta_pip
from filelock import FileLock

from pyspark.sql import SparkSession


Expand Down

0 comments on commit a3ab836

Please sign in to comment.