From 17b79c22da54fa86d340decad3b08cfe8d7ff9ec Mon Sep 17 00:00:00 2001 From: Evert Lammerts Date: Mon, 22 Jun 2026 10:39:08 +0200 Subject: [PATCH 1/3] fix numpy deprecation errors --- tests/fast/test_all_types.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/fast/test_all_types.py b/tests/fast/test_all_types.py index 07dc5f70..f5376a58 100644 --- a/tests/fast/test_all_types.py +++ b/tests/fast/test_all_types.py @@ -377,9 +377,9 @@ def test_fetchnumpy(self, cur_type): ), "interval": np.ma.array( [ - np.timedelta64(0), - np.timedelta64(2675722599999999000), - np.timedelta64(42), + np.timedelta64(0, "ns"), + np.timedelta64(2675722599999999000, "ns"), + np.timedelta64(42, "ns"), ], mask=[0, 0, 1], ), From 2c3d868a725eda678a132254e7dab9b7706e13bc Mon Sep 17 00:00:00 2001 From: Evert Lammerts Date: Mon, 22 Jun 2026 12:46:01 +0200 Subject: [PATCH 2/3] bump python version for mypy checks --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index f3bd17dc..e23b259f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -333,7 +333,7 @@ packages = ["duckdb", "_duckdb"] strict = true warn_unreachable = true pretty = true -python_version = "3.10" +python_version = "3.12" exclude = [ "duckdb/experimental/", # not checking the pyspark API "duckdb/query_graph/", # old and unmaintained (should probably remove) From b84cdb2b485bfc6dfdb1acb6977987456e83ea53 Mon Sep 17 00:00:00 2001 From: Evert Lammerts Date: Mon, 22 Jun 2026 14:56:08 +0200 Subject: [PATCH 3/3] one more --- tests/fast/test_all_types.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/fast/test_all_types.py b/tests/fast/test_all_types.py index f5376a58..6012b983 100644 --- a/tests/fast/test_all_types.py +++ b/tests/fast/test_all_types.py @@ -387,7 +387,7 @@ def test_fetchnumpy(self, cur_type): # such that the conversion yields "Not a Time" "timestamp_ns": np.ma.array( [ - np.datetime64("NaT"), + np.datetime64("NaT", "ns"), np.datetime64(9223372036854775806, "ns"), np.datetime64("1990-01-01T00:42"), ],