This is an automated email from the ASF dual-hosted git repository.

bossenti pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/streampipes.git


The following commit(s) were added to refs/heads/dev by this push:
     new 4c11c4d8d Bump flake8 from 6.0.0 to 6.1.0 in 
/streampipes-client-python (#1804)
4c11c4d8d is described below

commit 4c11c4d8d1bb3f43e59be4613afc5ebc963707ef
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
AuthorDate: Tue Aug 1 20:02:39 2023 +0200

    Bump flake8 from 6.0.0 to 6.1.0 in /streampipes-client-python (#1804)
    
    * Bump flake8 from 6.0.0 to 6.1.0 in /streampipes-client-python
    
    Bumps [flake8](https://github.com/pycqa/flake8) from 6.0.0 to 6.1.0.
    - [Commits](https://github.com/pycqa/flake8/compare/6.0.0...6.1.0)
    
    ---
    updated-dependencies:
    - dependency-name: flake8
      dependency-type: direct:development
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <[email protected]>
    
    * chore: use `isinstance()` instead of type comparison
    
    Signed-off-by: bossenti <[email protected]>
    
    ---------
    
    Signed-off-by: dependabot[bot] <[email protected]>
    Signed-off-by: bossenti <[email protected]>
    Co-authored-by: dependabot[bot] 
<49699333+dependabot[bot]@users.noreply.github.com>
    Co-authored-by: bossenti <[email protected]>
---
 streampipes-client-python/setup.py                                      | 2 +-
 .../streampipes/model/container/resource_container.py                   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/streampipes-client-python/setup.py 
b/streampipes-client-python/setup.py
index 9e9c2342e..468200354 100644
--- a/streampipes-client-python/setup.py
+++ b/streampipes-client-python/setup.py
@@ -50,7 +50,7 @@ dev_packages = base_packages + [
     "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 27016896e..c3a974647 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 @@ class ResourceContainer(ABC):
 
         # 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:

Reply via email to