diff --git a/CHANGELOG.md b/CHANGELOG.md index 5149fbe4..1619be46 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,12 @@ Changes are grouped as follows - `Fixed` for any bug fixes. - `Security` in case of vulnerabilities. +## [6.0.1] + +### Fixed + + * Fixed iter method on the state store to return an iterator + ## [6.0.0] ### Changed diff --git a/cognite/extractorutils/__init__.py b/cognite/extractorutils/__init__.py index bf1d4a01..f4092f1c 100644 --- a/cognite/extractorutils/__init__.py +++ b/cognite/extractorutils/__init__.py @@ -16,5 +16,5 @@ Cognite extractor utils is a Python package that simplifies the development of new extractors. """ -__version__ = "6.0.0" +__version__ = "6.0.1" from .base import Extractor diff --git a/cognite/extractorutils/statestore.py b/cognite/extractorutils/statestore.py index a957666e..41051c5c 100644 --- a/cognite/extractorutils/statestore.py +++ b/cognite/extractorutils/statestore.py @@ -90,7 +90,7 @@ import threading from abc import ABC, abstractmethod from types import TracebackType -from typing import Any, Callable, Dict, Iterable, List, Optional, Tuple, Type, Union +from typing import Any, Callable, Dict, Iterator, List, Optional, Tuple, Type, Union from requests.exceptions import ConnectionError @@ -309,7 +309,7 @@ def __contains__(self, external_id: str) -> bool: def __len__(self) -> int: return len(self._local_state) - def __iter__(self) -> Iterable[str]: + def __iter__(self) -> Iterator[str]: for key in self._local_state: yield key diff --git a/pyproject.toml b/pyproject.toml index 6b71fbe8..d9173936 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "cognite-extractor-utils" -version = "6.0.0" +version = "6.0.1" description = "Utilities for easier development of extractors for CDF" authors = ["Mathias Lohne "] license = "Apache-2.0"