Commit bb983ea5 authored by Dom Sekotill's avatar Dom Sekotill
Browse files

Add a missing __str__ method

parent ed07eb3d
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -49,6 +49,9 @@ class ClassifierMeta(enum.EnumMeta):
		super().__init__(name, bases, attr)
		cls.classifier = classifier

	def __str__(cls):
		return cls.classifier or ''

	def __repr__(cls):
		if cls.classifier is None:
			return f"<{__package__}.{cls.__name__}>"