Skip to content

Commit

Permalink
fixing convention warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
topherbuckley committed May 23, 2023
1 parent 61f9dff commit ff1dfb7
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions src/dali/transaction_item.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@
from dali.configuration import Keyword


class Transaction_Item:
def __init__(self, disallow_empty: bool, disallow_unknown: bool, transaction_item_type: Keyword) -> None:
class TransactionItem:
def __init__(self, disallow_empty: bool, disallow_unknown: bool,
transaction_item_type: Keyword) -> None:
self.__disallow_empty: bool = disallow_empty
self.__disallow_unknown: bool = disallow_unknown
self.__transaction_item_type: Keyword = transaction_item_type
Expand All @@ -36,12 +37,12 @@ def transaction_item_type(self) -> Keyword:
return self.__transaction_item_type


class TRANSACTION_ITEM_TYPE(Enum):
__members__: Transaction_Item
PLUGIN = Transaction_Item(True, True, Keyword.PLUGIN)
UNIQUE_ID = Transaction_Item(True, False, Keyword.UNIQUE_ID)
RAW_DATA = Transaction_Item(True, True, Keyword.RAW_DATA)
TIMESTAMP = Transaction_Item(True, True, Keyword.TIMESTAMP)
ASSET = Transaction_Item(True, True, Keyword.ASSET)
NOTES = Transaction_Item(False, True, Keyword.NOTES)
FIAT_TICKER = Transaction_Item(True, True, Keyword.FIAT_TICKER)
class TransactionItemType(Enum):
__members__: TransactionItem
PLUGIN = TransactionItem(True, True, Keyword.PLUGIN)
UNIQUE_ID = TransactionItem(True, False, Keyword.UNIQUE_ID)
RAW_DATA = TransactionItem(True, True, Keyword.RAW_DATA)
TIMESTAMP = TransactionItem(True, True, Keyword.TIMESTAMP)
ASSET = TransactionItem(True, True, Keyword.ASSET)
NOTES = TransactionItem(False, True, Keyword.NOTES)
FIAT_TICKER = TransactionItem(True, True, Keyword.FIAT_TICKER)

0 comments on commit ff1dfb7

Please sign in to comment.