From daebb6c66872a1cfe72bd45d03475d9d315477c1 Mon Sep 17 00:00:00 2001
From: "[6~" <inform@tiker.net>
Date: Sun, 17 May 2020 14:01:15 -0500
Subject: [PATCH] Add BTAG_PARTITION.__repr__

---
 meshmode/mesh/__init__.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/meshmode/mesh/__init__.py b/meshmode/mesh/__init__.py
index 2625515c..19ef8e5d 100644
--- a/meshmode/mesh/__init__.py
+++ b/meshmode/mesh/__init__.py
@@ -115,6 +115,9 @@ class BTAG_PARTITION(object):  # noqa
     def __ne__(self, other):
         return not self.__eq__(other)
 
+    def __repr__(self):
+        return "<%s(%s)>" % (type(self).__name__, repr(self.part_nr))
+
 
 SYSTEM_TAGS = set([BTAG_NONE, BTAG_ALL, BTAG_REALLY_ALL, BTAG_NO_BOUNDARY,
                    BTAG_PARTITION])
-- 
GitLab