From f8e56d4d2fbdfb320b5709dfaea5f387a5da18d0 Mon Sep 17 00:00:00 2001 From: futa-ikeda Date: Thu, 12 Jun 2025 19:32:08 -0400 Subject: [PATCH] Update to use collections.abc --- pydocx/util/memoize.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pydocx/util/memoize.py b/pydocx/util/memoize.py index c9868b73..1af18f89 100644 --- a/pydocx/util/memoize.py +++ b/pydocx/util/memoize.py @@ -21,7 +21,7 @@ def __init__(self, func): self.cache = {} 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)