Skip to content

Commit

Permalink
refactor: included only relevent info to repr methods
Browse files Browse the repository at this point in the history
  • Loading branch information
A91y committed May 26, 2024
1 parent dc99ef1 commit 683ecbe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions solathon/core/types/epoch.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def __init__(self, response: EpochType) -> None:
self.transaction_count = response['transactionCount']

def __repr__(self) -> str:
return f"Epoch(epoch={self.epoch!r}, absolute_slot={self.absolute_slot!r}, block_height={self.block_height!r}, slot_index={self.slot_index!r}"
return f"Epoch(epoch={self.epoch!r}, absolute_slot={self.absolute_slot!r}, block_height={self.block_height!r}, slot_index={self.slot_index!r})"


class EpochScheduleType(TypedDict):
Expand All @@ -54,4 +54,4 @@ def __init__(self, response: EpochScheduleType) -> None:
self.first_normal_slot = response['firstNormalSlot']

def __repr__(self) -> str:
return f"EpochSchedule(slots_per_epoch={self.slots_per_epoch!r}, leader_schedule_slot_offset={self.leader_schedule_slot_offset!r}, warmup={self.warmup!r}"
return f"EpochSchedule(slots_per_epoch={self.slots_per_epoch!r}, leader_schedule_slot_offset={self.leader_schedule_slot_offset!r}, warmup={self.warmup!r})"

0 comments on commit 683ecbe

Please # to comment.