diff --git a/streampipes-client-python/setup.py b/streampipes-client-python/setup.py index 9e9c2342e5..4682003545 100644 --- a/streampipes-client-python/setup.py +++ b/streampipes-client-python/setup.py @@ -50,7 +50,7 @@ "autoflake==2.2.0", "black==23.7.0", "blacken-docs==1.15.0", - "flake8==6.0.0", + "flake8==6.1.0", "interrogate[png]==1.5.0", "isort==5.12.0", "mypy==1.4.0", diff --git a/streampipes-client-python/streampipes/model/container/resource_container.py b/streampipes-client-python/streampipes/model/container/resource_container.py index 27016896e1..c3a9746479 100644 --- a/streampipes-client-python/streampipes/model/container/resource_container.py +++ b/streampipes-client-python/streampipes/model/container/resource_container.py @@ -181,7 +181,7 @@ def from_json(cls, json_string: str) -> ResourceContainer: # the ResourceContainer expects a list of items # raise an exception if the response does not be a list - if not type(parsed_json) == list: + if not isinstance(parsed_json, list): raise StreamPipesResourceContainerJSONError(container_name=str(cls), json_string=json_string) try: