From dc9740c9cbfababa9dfeab2252d21f03d75fe899 Mon Sep 17 00:00:00 2001
From: Thomas Gibson <gibsonthomas1120@hotmail.com>
Date: Thu, 22 Apr 2021 18:20:53 -0500
Subject: [PATCH] Add back asserts and uniqueness checks to Taggable
 constructor

---
 pytools/tag.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/pytools/tag.py b/pytools/tag.py
index f0d5328..408edd2 100644
--- a/pytools/tag.py
+++ b/pytools/tag.py
@@ -236,6 +236,9 @@ class Taggable:
     """
 
     def __init__(self, tags: TagsType = frozenset()):
+        assert isinstance(tags, FrozenSet)
+        assert all(isinstance(tag, Tag) for tag in tags)
+        check_tag_uniqueness(tags)
         self.tags = tags
 
     def copy(self: T_co, **kwargs: Any) -> T_co:
-- 
GitLab