From 0b75abd25e39a6a7c454238d91653b3a0fc1a662 Mon Sep 17 00:00:00 2001 From: Vidya Ramakrishnan Date: Thu, 7 Mar 2024 12:09:59 +0530 Subject: [PATCH] Use StrEnum for currency symbol --- boxoffice/models/enums.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/boxoffice/models/enums.py b/boxoffice/models/enums.py index 48aa0bbb..79894cc4 100644 --- a/boxoffice/models/enums.py +++ b/boxoffice/models/enums.py @@ -2,7 +2,7 @@ from __future__ import annotations -from enum import Enum, IntEnum +from enum import Enum, IntEnum, StrEnum from baseframe import __ @@ -61,11 +61,11 @@ class TransactionTypeEnum(IntEnum): REFUND = 1 -class CurrencyEnum(str, Enum): +class CurrencyEnum(StrEnum): INR = "INR" -class CurrencySymbol(str, Enum): +class CurrencySymbol(StrEnum): INR = '₹'