Skip to content

Commit

Permalink
Fixed pylint docs related errors
Browse files Browse the repository at this point in the history
  • Loading branch information
cjScrypt committed Nov 22, 2024
1 parent 5335e0c commit e924c64
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions apps/data_handler/handler_tools/data_parser/nostra.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,34 @@ def parse_debt_transfer_event(self):
pass

def parse_debt_mint_event(self, event_data: list[Any]) -> DebtMintEventData:
"""
Parses the debt mint event data into a human-readable format using the
DebtMintEventData serializer.
Args:
event_data (List[Any]): A list containing the raw debt mint event data,
typically with 2 elements: user and amount.
Returns:
DebtMintEventData: A Pydantic model with the parsed and validated event data in a human-readable format.
"""
return DebtMintEventData(
user=event_data[0],
token=event_data[1]
)

def parse_debt_burn_event(self, event_data: list[Any]) -> DebtBurnEventData:
"""
Parses the debt burn event data into a human-readable format using the
DebtBurnEventData serializer.
Args:
event_data (List[Any]): A list containing the raw debt burn event data,
typically with 2 elements: user and amount.
Returns:
DebtBurnEventData: A Pydantic model with the parsed and validated event data in a human-readable format.
"""
return DebtBurnEventData(
user=event_data[0],
amount=event_data[1]
Expand Down

0 comments on commit e924c64

Please sign in to comment.