From d6f76465972da63a7c34d2e4c5eadfab1e5e0add Mon Sep 17 00:00:00 2001 From: Xinyu Li Date: Wed, 2 Oct 2024 15:40:40 -0700 Subject: [PATCH] minor --- cdp/historical_balance.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cdp/historical_balance.py b/cdp/historical_balance.py index e14eb35..d70c643 100644 --- a/cdp/historical_balance.py +++ b/cdp/historical_balance.py @@ -26,7 +26,7 @@ def __init__(self, amount: Decimal, asset: Asset, block_height: str, block_hash: self._block_hash = block_hash @classmethod - def from_model(model: HistoricalBalanceModel) -> "HistoricalBalance": + def from_model(cls, model: HistoricalBalanceModel) -> "HistoricalBalance": """Create a Balance instance from a model. Args: