These types still have a __dict__, since they inherit from Enum, but using __slots__ for the inherited properties can still improve access times.
		
			
				
	
	
		
			14 lines
		
	
	
		
			265 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			265 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| __all__ = ['Fluctuation']
 | |
| __author__ = "Jeremy Saklad"
 | |
| 
 | |
| from enum import Enum
 | |
| 
 | |
| class Fluctuation(Enum):
 | |
|     """Which skeleton attribute is currently boosted."""
 | |
| 
 | |
|     __slots__ = '_value_', '_name_', '__objclass__'
 | |
| 
 | |
|     ANTIQUITY = 1
 | |
|     AMALGAMY = 2
 | |
|     MENACE = 3
 |