Skip to content

Commit

Permalink
Remove unused dataclass
Browse files Browse the repository at this point in the history
Just removing useless dataclass wrapper and attributes
  • Loading branch information
leoschmitz committed Apr 1, 2023
1 parent 98b1142 commit 570e904
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions taxes/data.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import logging
from calendar import month_name
from dataclasses import dataclass
from dataclasses import field
from datetime import datetime

logger = logging.getLogger(__name__)
Expand Down Expand Up @@ -55,13 +54,7 @@ def quantity(self):
return sum_


@dataclass
class MonthOperations:
month: int
loss: float = 0.0
buy: MonthlyBucket = field(default_factory=MonthlyBucket)
sell: MonthlyBucket = field(default_factory=MonthlyBucket)

def __init__(self, month: int):
self.month = month
self.loss = 0.0
Expand Down

0 comments on commit 570e904

Please sign in to comment.