From 72ea0712164eebc7cfa3d66cfa0cbd51a99662a5 Mon Sep 17 00:00:00 2001 From: aman Date: Wed, 7 Feb 2024 12:37:25 +0530 Subject: [PATCH] Fix subscriptable type error for Python 3.8 and below Changed the type hinting from dict and list to Dict and List from the typing module to fix a compatibility issue with Python 3.8 and earlier versions. --- timescale_vector/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/timescale_vector/client.py b/timescale_vector/client.py index 17c56a8..5e53171 100644 --- a/timescale_vector/client.py +++ b/timescale_vector/client.py @@ -196,7 +196,7 @@ def create_index_query(self, table_name_quoted:str, column_name_quoted: str, ind # %% ../nbs/00_vector.ipynb 10 class QueryParams: - def __init__(self, params: dict[str, Any]) -> None: + def __init__(self, params: Dict[str, Any]) -> None: self.params = params def get_statements(self) -> List[str]: