Skip to content

Commit

Permalink
fix ibdds.py: C417 Unnecessary use of map - use a set comprehension i…
Browse files Browse the repository at this point in the history
…nstead.
  • Loading branch information
cdump committed Jan 6, 2023
1 parent 6b29740 commit f6ebe8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion investments/ibdds/ibdds.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def dds_specific_round(source_amount: Money) -> Money:


def show_report(cash: List[Cash]):
currencies = set(map(lambda x: x.amount.currency, cash))
currencies = {x.amount.currency for x in cash}
logging.info(f'currency={currencies}')

for currency in currencies:
Expand Down

0 comments on commit f6ebe8e

Please sign in to comment.