Skip to content

Commit

Permalink
Removed type annotations from Enum to make mypy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
eprbell committed Jan 1, 2025
1 parent 1c8fb10 commit 4466e88
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 27 deletions.
4 changes: 2 additions & 2 deletions src/rp2/abstract_accounting_method.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ class AcquiredLotAndAmount(NamedTuple):


class AcquiredLotCandidatesOrder(Enum):
OLDER_TO_NEWER: str = "older_to_newer"
NEWER_TO_OLDER: str = "newer_to_older"
OLDER_TO_NEWER = "older_to_newer"
NEWER_TO_OLDER = "newer_to_older"


class AcquiredLotSortKey(NamedTuple):
Expand Down
22 changes: 11 additions & 11 deletions src/rp2/plugin/report/ie/tax_report_ie.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,17 @@


class SheetNames(Enum):
AIRDROPS: str = "Airdrops"
CAPITAL_GAINS: str = "Capital Gains"
DONATIONS: str = "Donations"
GIFTS: str = "Gifts"
HARDFORKS: str = "Hard Forks"
INCOME: str = "Income"
INTEREST: str = "Interest"
INVESTMENT_EXPENSES: str = "Investment Expenses"
MINING: str = "Mining"
STAKING: str = "Staking"
WAGES: str = "Wages"
AIRDROPS = "Airdrops"
CAPITAL_GAINS = "Capital Gains"
DONATIONS = "Donations"
GIFTS = "Gifts"
HARDFORKS = "Hard Forks"
INCOME = "Income"
INTEREST = "Interest"
INVESTMENT_EXPENSES = "Investment Expenses"
MINING = "Mining"
STAKING = "Staking"
WAGES = "Wages"


_TEMPLATE_SHEETS_TO_KEEP: Set[str] = {f"__{item.value}" for item in SheetNames}
Expand Down
4 changes: 2 additions & 2 deletions src/rp2/plugin/report/jp/tax_report_jp.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ class _TransactionRow(NamedTuple):


class _SheetNames(Enum):
ASSET: str = "Asset"
SUMMARY: str = "Summary"
ASSET = "Asset"
SUMMARY = "Summary"


_TEMPLATE_SHEETS_TO_KEEP: Set[str] = {f"__{item.value}" for item in _SheetNames}
Expand Down
24 changes: 12 additions & 12 deletions src/rp2/plugin/report/us/tax_report_us.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,18 +31,18 @@


class SheetNames(Enum):
AIRDROPS: str = "Airdrops"
CAPITAL_GAINS: str = "Capital Gains"
DONATIONS: str = "Donations"
GIFTS: str = "Gifts"
HARDFORKS: str = "Hard Forks"
INCOME: str = "Income"
INTEREST: str = "Interest"
INVESTMENT_EXPENSES: str = "Investment Expenses"
LOST: str = "Lost"
MINING: str = "Mining"
STAKING: str = "Staking"
WAGES: str = "Wages"
AIRDROPS = "Airdrops"
CAPITAL_GAINS = "Capital Gains"
DONATIONS = "Donations"
GIFTS = "Gifts"
HARDFORKS = "Hard Forks"
INCOME = "Income"
INTEREST = "Interest"
INVESTMENT_EXPENSES = "Investment Expenses"
LOST = "Lost"
MINING = "Mining"
STAKING = "Staking"
WAGES = "Wages"


_TEMPLATE_SHEETS_TO_KEEP: Set[str] = {f"__{item.value}" for item in SheetNames}
Expand Down

0 comments on commit 4466e88

Please sign in to comment.