Skip to content

Commit 8099100

Browse files
doc: SimpleClassReprABC
1 parent 6eafaae commit 8099100

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

mpqp/tools/generics.py

+5
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,11 @@ class SimpleClassReprABCMeta(SimpleClassReprMeta, ABCMeta):
223223

224224

225225
class SimpleClassReprABC(metaclass=SimpleClassReprABCMeta):
226+
"""This class is the equivalent of ABC (it signifies that it's subclass
227+
isn't meant to be instantiated directly), but it adds the small feature of
228+
setting the ``repr`` to be the class name, which is for instance useful for
229+
gates."""
230+
226231
pass
227232

228233

0 commit comments

Comments
 (0)