Skip to content

Commit

Permalink
Use string enums for natural gas company (codeforboston#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 authored May 1, 2024
1 parent 07ad54b commit c4eeea4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions rules-engine/src/rules_engine/parser.py
Original file line number Diff line number Diff line change
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 c4eeea4

Please sign in to comment.