Skip to content

Commit

Permalink
Use string enums for natural gas company (#169)
Browse files Browse the repository at this point in the history
* use string enums for natural gas company

* use StrEnum
  • Loading branch information
alanisaac committed May 1, 2024
1 parent ac0b3d7 commit 0653a98
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions rules-engine/src/rules_engine/parser.py
Expand Up @@ -5,14 +5,14 @@
import csv
import io
from datetime import datetime, timedelta
from enum import Enum
from enum import StrEnum

from .pydantic_models import NaturalGasBillingInput, NaturalGasBillingRecordInput


class NaturalGasCompany(Enum):
EVERSOURCE = 1
NATIONAL_GRID = 2
class NaturalGasCompany(StrEnum):
EVERSOURCE = "eversource"
NATIONAL_GRID = "national_grid"


class _GasBillRowEversource:
Expand Down

0 comments on commit 0653a98

Please sign in to comment.