From 2431eacd1589ae8f93a768b981de495b75378db4 Mon Sep 17 00:00:00 2001 From: allen-munsch Date: Tue, 18 Oct 2022 07:28:51 -0500 Subject: [PATCH] update for python 3.10 --- stream_framework/utils/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stream_framework/utils/__init__.py b/stream_framework/utils/__init__.py index 81a89798..306bfcca 100644 --- a/stream_framework/utils/__init__.py +++ b/stream_framework/utils/__init__.py @@ -116,7 +116,7 @@ def __init__(self, func): self.cache = LRUCache(10000) def __call__(self, *args): - if not isinstance(args, collections.Hashable): + if not isinstance(args, collections.abc.Hashable): # uncacheable. a list, for instance. # better to not cache than blow up. return self.func(*args)