From da67665b62c75fe10a1494e3bc7d944963127fc0 Mon Sep 17 00:00:00 2001 From: Shivesh Mandalia Date: Mon, 20 Apr 2020 01:25:38 +0100 Subject: Add __slots__ --- utils/enums.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'utils/enums.py') diff --git a/utils/enums.py b/utils/enums.py index aed4a97..5516698 100644 --- a/utils/enums.py +++ b/utils/enums.py @@ -25,17 +25,17 @@ class PPEnum(Enum): class OptionRight(PPEnum): """Right of an option.""" - Call = auto() - Put = auto() + Call: int = auto() + Put: int = auto() class BarrierUpDown(PPEnum): """Up or down type barrier option.""" - Up = auto() - Down = auto() + Up: int = auto() + Down: int = auto() class BarrierInOut(PPEnum): """In or out type barrier option.""" - In = auto() - Out = auto() + In: int = auto() + Out: int = auto() -- cgit v1.2.3