From 5c605439844e1c8ee78795e12b2444b035fe5232 Mon Sep 17 00:00:00 2001 From: Lina Date: Wed, 4 Dec 2024 13:35:31 +0100 Subject: [PATCH 1/2] Hotfix automated tests --- util.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/util.py b/util.py index 66fe689..b29f8c3 100644 --- a/util.py +++ b/util.py @@ -1,7 +1,7 @@ import os from typing import Tuple, Any, Union, List, Dict, Optional, Iterable from pydantic import BaseModel -import collections +from collections.abc import Iterable from re import sub, match, compile import sqlalchemy from uuid import UUID @@ -196,7 +196,7 @@ def to_camel_case(name: str): def is_list_like(value: Any) -> bool: return ( - isinstance(value, collections.Iterable) + isinstance(value, Iterable) and not isinstance(value, str) and not isinstance(value, dict) and not isinstance(value, Row) From 8095a9ebff9e156e66c048834adee94d6a3f6485 Mon Sep 17 00:00:00 2001 From: JWittmeyer Date: Wed, 4 Dec 2024 14:01:41 +0100 Subject: [PATCH 2/2] Fix double type name --- util.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/util.py b/util.py index b29f8c3..99636a8 100644 --- a/util.py +++ b/util.py @@ -1,7 +1,7 @@ import os from typing import Tuple, Any, Union, List, Dict, Optional, Iterable from pydantic import BaseModel -from collections.abc import Iterable +from collections.abc import Iterable as collections_abc_Iterable from re import sub, match, compile import sqlalchemy from uuid import UUID @@ -196,7 +196,7 @@ def to_camel_case(name: str): def is_list_like(value: Any) -> bool: return ( - isinstance(value, Iterable) + isinstance(value, collections_abc_Iterable) and not isinstance(value, str) and not isinstance(value, dict) and not isinstance(value, Row)