From e09579e637315471383a8618bb6d96b1a805b925 Mon Sep 17 00:00:00 2001
From: Andreas Kloeckner <inform@tiker.net>
Date: Fri, 21 Mar 2025 14:03:12 -0500
Subject: [PATCH] Show qualified function name in _rec_map_container error

---
 arraycontext/impl/pytato/__init__.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arraycontext/impl/pytato/__init__.py b/arraycontext/impl/pytato/__init__.py
index 60aadba..958ec32 100644
--- a/arraycontext/impl/pytato/__init__.py
+++ b/arraycontext/impl/pytato/__init__.py
@@ -357,7 +357,7 @@ class PytatoPyOpenCLArrayContext(_BasePytatoArrayContext):
                     return np.array(ary).dtype.type(default_scalar)
             else:
                 raise TypeError(
-                    f"{type(self).__name__}.{func.__name__[1:]} invoked with "
+                    f"{func.__qualname__} invoked with "
                     f"an unsupported array type: got '{type(ary).__name__}', "
                     f"but expected one of {allowed_types}")
 
-- 
GitLab