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.
26 lines
711 B
Python
26 lines
711 B
Python
__all__ = ['OccasionalBuyer']
|
|
__author__ = "Jeremy Saklad"
|
|
|
|
from enum import Enum
|
|
|
|
from .buyers import Buyer
|
|
|
|
class OccasionalBuyer(Enum):
|
|
"""Which of several unusual buyers are available."""
|
|
|
|
__slots__ = '_value_', '_name_', '__objclass__'
|
|
|
|
AN_ENTHUSIAST_IN_SKULLS = [Buyer.AN_ENTHUSIAST_IN_SKULLS]
|
|
|
|
A_DREARY_MIDNIGHTER = [Buyer.A_DREARY_MIDNIGHTER]
|
|
|
|
A_COLOURFUL_PHANTASIST = [
|
|
Buyer.A_COLOURFUL_PHANTASIST_BAZAARINE,
|
|
Buyer.A_COLOURFUL_PHANTASIST_NOCTURNAL,
|
|
Buyer.A_COLOURFUL_PHANTASIST_CELESTIAL,
|
|
]
|
|
|
|
AN_INGENUOUS_MALACOLOGIST = [Buyer.AN_INGENUOUS_MALACOLOGIST]
|
|
|
|
AN_ENTERPRISING_BOOT_SALESMAN = [Buyer.AN_ENTERPRISING_BOOT_SALESMAN]
|