Skip to content

Commit

Permalink
Add attribute declaration and type hint in Solution class
Browse files Browse the repository at this point in the history
  • Loading branch information
ChihweiLHBird committed Sep 15, 2020
1 parent 5833d61 commit 6899ac5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pyrfume/odorants.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@


class Solution:
components: dict = {}

def __init__(self, components: dict, date_created: datetime.timestamp = None):
self.total_volume = 0 * pq.mL
assert isinstance(components, dict), "Components must be a dict"
Expand Down

0 comments on commit 6899ac5

Please sign in to comment.