From 748f9a75abf7eb13adc20615dd4490708d11aedc Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 28 Oct 2025 13:12:48 +0000 Subject: [PATCH 1/3] Bump pandas-stubs from 2.2.3.241126 to 2.3.2.250926 Bumps [pandas-stubs](https://github.com/pandas-dev/pandas-stubs) from 2.2.3.241126 to 2.3.2.250926. - [Changelog](https://github.com/pandas-dev/pandas-stubs/blob/main/docs/release_procedure.md) - [Commits](https://github.com/pandas-dev/pandas-stubs/compare/v2.2.3.241126...v2.3.2.250926) --- updated-dependencies: - dependency-name: pandas-stubs dependency-version: 2.3.2.250926 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 06a5d7179..b6f10fa15 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -54,7 +54,7 @@ dev = [ "interrogate==1.7.0", "isort==6.0.1", "mypy==1.16.1", - "pandas-stubs==2.2.3.241126", + "pandas-stubs==2.3.2.250926", "pre-commit==4.1.0", "pytest==8.3.4", "pytest-asyncio==0.24.0", From 651baaba478e94060a2c34eff3912f825c2c7d7d Mon Sep 17 00:00:00 2001 From: Lars Briem Date: Tue, 28 Oct 2025 14:30:11 +0100 Subject: [PATCH 2/3] DEPENDABOT: Update uv.lock --- uv.lock | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/uv.lock b/uv.lock index 9c8578d57..0bda83136 100644 --- a/uv.lock +++ b/uv.lock @@ -1055,7 +1055,7 @@ dev = [ { name = "interrogate", specifier = "==1.7.0" }, { name = "isort", specifier = "==6.0.1" }, { name = "mypy", specifier = "==1.16.1" }, - { name = "pandas-stubs", specifier = "==2.2.3.241126" }, + { name = "pandas-stubs", specifier = "==2.3.2.250926" }, { name = "pre-commit", specifier = "==4.1.0" }, { name = "pytest", specifier = "==8.3.4" }, { name = "pytest-asyncio", specifier = "==0.24.0" }, @@ -1113,15 +1113,15 @@ wheels = [ [[package]] name = "pandas-stubs" -version = "2.2.3.241126" +version = "2.3.2.250926" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "numpy" }, { name = "types-pytz" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/90/86/93c545d149c3e1fe1c4c55478cc3a69859d0ea3467e1d9892e9eb28cb1e7/pandas_stubs-2.2.3.241126.tar.gz", hash = "sha256:cf819383c6d9ae7d4dabf34cd47e1e45525bb2f312e6ad2939c2c204cb708acd", size = 104204, upload-time = "2024-11-26T15:06:00.807Z" } +sdist = { url = "https://files.pythonhosted.org/packages/1b/3b/32be58a125db39d0b5f62cc93795f32b5bb2915bd5c4a46f0e35171985e2/pandas_stubs-2.3.2.250926.tar.gz", hash = "sha256:c64b9932760ceefb96a3222b953e6a251321a9832a28548be6506df473a66406", size = 102147, upload-time = "2025-09-26T19:50:39.522Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/6f/ab/ed42acf15bab2e86e5c49fad4aa038315233c4c2d22f41b49faa4d837516/pandas_stubs-2.2.3.241126-py3-none-any.whl", hash = "sha256:74aa79c167af374fe97068acc90776c0ebec5266a6e5c69fe11e9c2cf51f2267", size = 158280, upload-time = "2024-11-26T15:05:59.428Z" }, + { url = "https://files.pythonhosted.org/packages/40/96/1e4a035eaf4dce9610aac6e43026d0c6baa05773daf6d21e635a4fe19e21/pandas_stubs-2.3.2.250926-py3-none-any.whl", hash = "sha256:81121818453dcfe00f45c852f4dceee043640b813830f6e7bd084a4ef7ff7270", size = 159995, upload-time = "2025-09-26T19:50:38.241Z" }, ] [[package]] From 68011be3efd221866293eb7ea0d076d15f172a22 Mon Sep 17 00:00:00 2001 From: Lars Briem Date: Tue, 28 Oct 2025 14:48:28 +0100 Subject: [PATCH 3/3] DEPENDABOT: Fix type issues --- OTAnalytics/plugin_datastore/track_store.py | 8 +++++--- .../plugin_ui/visualization/counts/counts_plotter.py | 7 ++++--- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/OTAnalytics/plugin_datastore/track_store.py b/OTAnalytics/plugin_datastore/track_store.py index d938e8c3e..ac16b406b 100644 --- a/OTAnalytics/plugin_datastore/track_store.py +++ b/OTAnalytics/plugin_datastore/track_store.py @@ -109,10 +109,12 @@ def input_file(self) -> str: def __eq__(self, other: Any) -> bool: if not isinstance(other, PandasDetection): return False + # Ensure a builtins.bool is returned (pandas .all() may return numpy.bool_) + data_equal: bool = bool((self._data == other._data).all()) return ( - self._track_id == other._track_id - and self._occurrence == other._occurrence - and (self._data == other._data).all() + (self._track_id == other._track_id) + and (self._occurrence == other._occurrence) + and data_equal ) def __hash__(self) -> int: diff --git a/OTAnalytics/plugin_ui/visualization/counts/counts_plotter.py b/OTAnalytics/plugin_ui/visualization/counts/counts_plotter.py index b9382c625..9629cc5c8 100644 --- a/OTAnalytics/plugin_ui/visualization/counts/counts_plotter.py +++ b/OTAnalytics/plugin_ui/visualization/counts/counts_plotter.py @@ -363,9 +363,10 @@ def _prepare_dataframe(self, count: Count) -> DataFrame: dataframe = dataframe.sort_values(LEVEL_START_TIME) # Build full combination index (flow x start time x classification) - all_flows = dataframe[LEVEL_FLOW].unique() - all_times = dataframe[LEVEL_START_TIME].unique() - all_classes = dataframe[LEVEL_CLASSIFICATION].unique() + # Convert numpy arrays from .unique() to plain Python lists for type checking + all_flows = dataframe[LEVEL_FLOW].unique().tolist() + all_times = dataframe[LEVEL_START_TIME].unique().tolist() + all_classes = dataframe[LEVEL_CLASSIFICATION].unique().tolist() multi_index = [LEVEL_FLOW, LEVEL_START_TIME, LEVEL_CLASSIFICATION] full_index = MultiIndex.from_product( [all_flows, all_times, all_classes],