Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
wwwanlingxiao
system-design-primer
Commits
a3604834
Commit
a3604834
authored
May 07, 2018
by
cclauss
Committed by
Donne Martin
May 06, 2018
Browse files
Add missing enum imports (#157)
parent
4a7d2e45
Changes
2
Hide whitespace changes
Inline
Side-by-side
solutions/object_oriented_design/online_chat/online_chat.py
View file @
a3604834
from
abc
import
ABCMeta
from
enum
import
Enum
class
UserService
(
object
):
...
...
solutions/system_design/mint/mint_snippets.py
View file @
a3604834
# -*- 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
...
...
@@ -44,4 +48,3 @@ class Budget(object):
def
override_category_budget
(
self
,
category
,
amount
):
self
.
categories_to_budget_map
[
category
]
=
amount
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment