From 1dc7f73795aea2ccd306c642222e5182fe541404 Mon Sep 17 00:00:00 2001
From: Matthias Diener <mdiener@illinois.edu>
Date: Sun, 8 Oct 2023 19:49:48 -0500
Subject: [PATCH] switch immutables.Map to immutabledict

---
 pymbolic/mapper/__init__.py | 4 ++--
 setup.py                    | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/pymbolic/mapper/__init__.py b/pymbolic/mapper/__init__.py
index 8721f42..7ff87b3 100644
--- a/pymbolic/mapper/__init__.py
+++ b/pymbolic/mapper/__init__.py
@@ -23,7 +23,7 @@ THE SOFTWARE.
 from abc import ABC, abstractmethod
 from typing import Any, Dict
 import pymbolic.primitives as primitives
-import immutables
+from immutabledict import immutabledict
 
 __doc__ = """
 Basic dispatch
@@ -252,7 +252,7 @@ class CachedMapper(Mapper):
         # Must add 'type(expr)', to differentiate between python scalar types.
         # In Python, the following conditions are true: "hash(4) == hash(4.0)"
         # and "4 == 4.0", but their traversal results cannot be re-used.
-        return (type(expr), expr, args, immutables.Map(kwargs))
+        return (type(expr), expr, args, immutabledict(kwargs))
 
     def __call__(self, expr, *args, **kwargs):
         result = self._cache.get(
diff --git a/setup.py b/setup.py
index fd03f55..a4f4395 100644
--- a/setup.py
+++ b/setup.py
@@ -38,7 +38,7 @@ setup(name="pymbolic",
       python_requires="~=3.8",
       install_requires=[
           "pytools>=2022.1.14",
-          "immutables",
+          "immutabledict",
           ],
       extras_require={
           "test": ["pytest>=2.3"],
-- 
GitLab