Skip to content

Commit

Permalink
Add missing enum imports (#157)
Browse files Browse the repository at this point in the history
  • Loading branch information
cclauss authored and donnemartin committed May 7, 2018
1 parent 4a7d2e4 commit a360483
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from abc import ABCMeta
from enum import Enum


class UserService(object):
Expand Down
7 changes: 5 additions & 2 deletions solutions/system_design/mint/mint_snippets.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
# -*- coding: utf-8 -*-

from enum import Enum


class DefaultCategories(Enum):

HOUSING = 0
FOOD = 1
GAS = 2
SHOPPING = 3
...
# ...


seller_category_map = {}
seller_category_map['Exxon'] = DefaultCategories.GAS
Expand Down Expand Up @@ -44,4 +48,3 @@ def __init__(self, template_categories_to_budget_map):

def override_category_budget(self, category, amount):
self.categories_to_budget_map[category] = amount

0 comments on commit a360483

Please sign in to comment.