From 5c5d2c078664163700acbcd921e4a3a8ac09838b Mon Sep 17 00:00:00 2001 From: Peter Corke Date: Sun, 16 Aug 2026 12:31:14 +1000 Subject: [PATCH] fix: remove dead numpy.char.array import triggering chararray deprecation from numpy.char import array at Sources.py:28 was unused -- every actual array( call in the file is np.array(...) (a different function) or a local variable that happens to be named array. The import served no purpose and only existed to trigger numpy's "chararray class is deprecated" warning on every import of the package, seen throughout the test suite. Co-Authored-By: Claude Sonnet 5 --- src/machinevisiontoolbox/Sources.py | 1 - 1 file changed, 1 deletion(-) diff --git a/src/machinevisiontoolbox/Sources.py b/src/machinevisiontoolbox/Sources.py index d3d7baba..5de72c67 100644 --- a/src/machinevisiontoolbox/Sources.py +++ b/src/machinevisiontoolbox/Sources.py @@ -25,7 +25,6 @@ import zipfile from collections import Counter, deque from collections.abc import Iterator -from numpy.char import array from tqdm import tqdm from datetime import datetime, timezone from typing import TYPE_CHECKING, IO, Any, Literal, cast