Skip to content

Commit

Permalink
Refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
Roman505050 committed Nov 23, 2024
1 parent b816ff7 commit d155950
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 30 deletions.
6 changes: 0 additions & 6 deletions src/core/domain/transaction/entities/currency.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,3 @@ def _validate_currency_code(code: str):
raise ValueError(
"Currency code must be a 3-letter uppercase string"
)

def __eq__(self, other):
return self.currency_id == other.currency_id

def __ne__(self, other):
return self.currency_id != other.currency_id
12 changes: 0 additions & 12 deletions src/core/domain/transaction/value_objects/amount_range.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,3 @@
class AmountRange:
min_amount: Decimal
max_amount: Decimal

def __eq__(self, other):
return (
self.min_amount == other.min_amount
and self.max_amount == other.max_amount
)

def __ne__(self, other):
return (
self.min_amount != other.min_amount
or self.max_amount != other.max_amount
)
12 changes: 0 additions & 12 deletions src/core/domain/transaction/value_objects/data_range.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,3 @@
class DataRange:
start_date: datetime.date
end_date: datetime.date

def __eq__(self, other):
return (
self.start_date == other.start_date
and self.end_date == other.end_date
)

def __ne__(self, other):
return (
self.start_date != other.start_date
or self.end_date != other.end_date
)

0 comments on commit d155950

Please sign in to comment.