Skip to content

Commit

Permalink
Use StrEnum for currency symbol
Browse files Browse the repository at this point in the history
  • Loading branch information
vidya-ram committed Mar 7, 2024
1 parent e2ebff1 commit 0b75abd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions boxoffice/models/enums.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from __future__ import annotations

from enum import Enum, IntEnum
from enum import Enum, IntEnum, StrEnum

from baseframe import __

Expand Down Expand Up @@ -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 = '₹'


Expand Down

0 comments on commit 0b75abd

Please sign in to comment.