diff --git a/core/eolearn/core/eodata.py b/core/eolearn/core/eodata.py index d3c3868db..6d46b11da 100644 --- a/core/eolearn/core/eodata.py +++ b/core/eolearn/core/eodata.py @@ -175,7 +175,7 @@ class _FeatureDictGeoDf(_FeatureDict[gpd.GeoDataFrame]): """_FeatureDict object specialized for GeoDataFrames.""" def __init__(self, feature_dict: Dict[str, gpd.GeoDataFrame], feature_type: FeatureType): - if not feature_type.is_vector: + if not feature_type.is_vector(): raise ValueError(f"Feature type {feature_type} does not represent a vector feature.") super().__init__(feature_dict, feature_type) diff --git a/requirements-dev.txt b/requirements-dev.txt index f88e4b170..2ace71579 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -1,7 +1,7 @@ codecov hypothesis moto -mypy +mypy>=0.990 nbval pylint>=2.14.0 pytest>=7.0.0