Skip to content

Commit

Permalink
Fix type checking
Browse files Browse the repository at this point in the history
  • Loading branch information
MDUYN committed Mar 27, 2024
1 parent c786d9b commit b2896aa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def get_orders(self, symbol, market, since: datetime = None):
raise NotImplementedError()

@abstractmethod
def get_balance(self, market) -> dict[str, float]:
def get_balance(self, market) -> Dict[str, float]:
raise NotImplementedError()

@abstractmethod
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ def get_orders(self, symbol, market, since: datetime = None):
logger.exception(e)
raise OperationalException("Could not retrieve orders")

def get_balance(self, market):
def get_balance(self, market) -> Dict[str, float]:
market_credential = self.get_market_credential(market)

if market_credential is None:
Expand Down

0 comments on commit b2896aa

Please sign in to comment.