From 03f527a67d6851a527c3d297c21b05b310fcc1c9 Mon Sep 17 00:00:00 2001
From: Andreas Kloeckner <inform@tiker.net>
Date: Thu, 17 Mar 2022 00:29:40 -0500
Subject: [PATCH] Stringify return type of flat_size_and_dtype to avoid py3.9+
 type subscript

---
 arraycontext/container/traversal.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arraycontext/container/traversal.py b/arraycontext/container/traversal.py
index 3a11b81..23cec03 100644
--- a/arraycontext/container/traversal.py
+++ b/arraycontext/container/traversal.py
@@ -774,7 +774,7 @@ def unflatten(
 
 
 def flat_size_and_dtype(
-        ary: ArrayOrContainerT) -> Tuple[int, Optional[np.dtype[Any]]]:
+        ary: ArrayOrContainerT) -> "Tuple[int, Optional[np.dtype[Any]]]":
     """
     :returns: a tuple ``(size, dtype)`` that would be the length and
         :class:`numpy.dtype` of the one-dimensional array returned by
-- 
GitLab