Jeremy Saklad
97aedc0895
These types still have a __dict__, since they inherit from Enum, but using __slots__ for the inherited properties can still improve access times.
16 lines
491 B
Python
16 lines
491 B
Python
__all__ = ['DiplomatFascination']
|
|
__author__ = "Jeremy Saklad"
|
|
|
|
from enum import Enum
|
|
|
|
from .buyers import Buyer
|
|
|
|
DiplomatFascination = Enum(
|
|
'DiplomatFascination',
|
|
( (diplomat.name[22:], diplomat) for diplomat in Buyer
|
|
if diplomat.name.startswith('THE_TRIFLING_DIPLOMAT_') ),
|
|
module = __name__
|
|
)
|
|
DiplomatFascination.__doc__ = "The current fascination of the Trifling Diplomat."
|
|
DiplomatFascination.__slots__ = '_value_', '_name_', '__objclass__'
|