From 632294a89a5c8047931c980d33320a63d5dedb89 Mon Sep 17 00:00:00 2001 From: moshferatu Date: Thu, 8 Feb 2024 03:22:07 -0800 Subject: [PATCH] Convert option type to a enum --- option_type.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/option_type.py b/option_type.py index 79eb23f..c972998 100644 --- a/option_type.py +++ b/option_type.py @@ -1,2 +1,5 @@ -CALL = 'C' -PUT = 'P' \ No newline at end of file +from enum import Enum + +class OptionType(Enum): + CALL = 'CALL' + PUT = 'PUT' \ No newline at end of file