Skip to content

Commit

Permalink
Use fiona for python < 3.11
Browse files Browse the repository at this point in the history
Signed-off-by: Harm Matthias Harms <[email protected]>
  • Loading branch information
harm-matthias-harms committed Sep 13, 2024
1 parent da204fa commit 6b2a225
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions kedro-datasets/kedro_datasets/geopandas/generic_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
from __future__ import annotations

import copy
import sys
from pathlib import PurePosixPath
from typing import Any, Union

Expand All @@ -21,6 +22,9 @@

NON_FILE_SYSTEM_TARGETS = ["postgis"]

if sys.version_info < (3, 11):
gpd.options.io_engine = "fiona"


class GenericDataset(
AbstractVersionedDataset[
Expand Down

0 comments on commit 6b2a225

Please sign in to comment.