Skip to content

Commit

Permalink
Fixes millage rate guard
Browse files Browse the repository at this point in the history
  • Loading branch information
colindean committed Sep 17, 2022
1 parent 4d472e5 commit 7cca53f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tax_rate_comparison/retrieve_tax_rates.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ class MillageRate:
rate: float = 0.0

def __post_init__(self):
self.rate = self.mills / 1000.0
if self.rate == 0.0 and self.mills != 0.0:
self.rate = self.mills / 1000.0

def __add__(self, other: 'MillageRate') -> 'MillageRate':
assert type(other) == MillageRate
Expand Down

0 comments on commit 7cca53f

Please sign in to comment.