From 12ad17b93917f7b8042b82fe152b9c578622e7c9 Mon Sep 17 00:00:00 2001 From: Elisabeth Reid <16.elisabethw@gmail.com> Date: Sun, 21 Nov 2021 09:39:09 -0500 Subject: [PATCH] Python 3.10 error fix: Replaces deprecated collections module with typing module. --- ccm/lib/actr/core.py | 6 +++--- ccm/pattern.py | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/ccm/lib/actr/core.py b/ccm/lib/actr/core.py index 3619c59..54168fa 100755 --- a/ccm/lib/actr/core.py +++ b/ccm/lib/actr/core.py @@ -1,6 +1,6 @@ import ccm -import collections +import typing class ACTR(ccm.ProductionSystem): production_time_sd=None @@ -26,7 +26,7 @@ def _process_productions(self): a=max(activations) threshold=self.production_threshold - if isinstance(threshold, collections.Callable): threshold=threshold() + if isinstance(threshold, typing.Callable): threshold=threshold() if threshold is not None and a