I recently came across this code from a stackoverflow question:
@unique
class NetlistKind(IntEnum):
Unknown = 0
LatticeNetlist = 1
QuartusNetlist = 2
XSTNetlist = 4
CoreGenNetlist = 8
All = 15
What does the @unique
decorator do, and what is its purpose in this code snippet?