From 41475c574f1e76b3ce5e68f48bb27c3a436c64bf Mon Sep 17 00:00:00 2001 From: Mr-Neutr0n <64578610+Mr-Neutr0n@users.noreply.github.com> Date: Fri, 6 Feb 2026 02:23:38 +0530 Subject: [PATCH] Fix Python 3.10+ compatibility: use collections.abc.Iterable Replace deprecated collections.Iterable with collections.abc.Iterable in containers.py. collections.Iterable was deprecated in Python 3.3 and removed in Python 3.10. Related to #44 Co-Authored-By: Claude Opus 4.5 --- FlowCytometryTools/core/containers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/FlowCytometryTools/core/containers.py b/FlowCytometryTools/core/containers.py index c33c437..fe4bdc2 100644 --- a/FlowCytometryTools/core/containers.py +++ b/FlowCytometryTools/core/containers.py @@ -1,4 +1,4 @@ -import collections +import collections.abc import inspect import warnings from itertools import cycle @@ -135,7 +135,7 @@ def plot( if gate_colors is None: gate_colors = cycle(("b", "g", "r", "m", "c", "y")) - if not isinstance(gate_lw, collections.Iterable): + if not isinstance(gate_lw, collections.abc.Iterable): gate_lw = [gate_lw] gate_lw = cycle(gate_lw)