From a3fadf70c638bc897cb12e8c38385193b912c4fe Mon Sep 17 00:00:00 2001 From: Kevin Smith Date: Wed, 12 Jul 2023 10:19:56 -0500 Subject: [PATCH] Fix type annotation for Python < 3.9 --- singlestoredb/http/connection.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/singlestoredb/http/connection.py b/singlestoredb/http/connection.py index 3ffd5a30..7e4e3883 100644 --- a/singlestoredb/http/connection.py +++ b/singlestoredb/http/connection.py @@ -233,7 +233,7 @@ def encode_decimal(o: decimal.Decimal) -> str: if has_numpy: - def encode_ndarray(obj: np.ndarray[Any, Any]) -> bytes: + def encode_ndarray(obj: np.ndarray) -> bytes: # type: ignore """Encode an ndarray as bytes.""" return obj.tobytes()