enum.unique

enum.unique#

The module enum provides a decorator unique that checks if the enumeration decorated doesn’t contain any aliases. If you think this is too simple, go ahead and try implementing verify instead.

(You can learn more about the module enum in this article.)