Skip to content

Commit

Permalink
Linting
Browse files Browse the repository at this point in the history
  • Loading branch information
kalaspuff committed Nov 22, 2019
1 parent 9537833 commit 2c663df
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion stockholm/money.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,13 @@ class Money:
def sort(cls, iterable: Iterable, reverse: bool = False) -> Iterable:
return sorted(iterable, key=lambda x: x if isinstance(x, Money) else Money(x), reverse=reverse)

def __init__(self, amount: Optional[Union["Money", Decimal, int, float, str]] = None, currency: Optional[str] = None, is_cents: Optional[bool] = None, **kwargs: Any) -> None:
def __init__(
self,
amount: Optional[Union["Money", Decimal, int, float, str]] = None,
currency: Optional[str] = None,
is_cents: Optional[bool] = None,
**kwargs: Any,
) -> None:
if amount is None:
raise Exception("Missing input values for valid monetary amount")

Expand Down

0 comments on commit 2c663df

Please sign in to comment.