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 b2896aa commit 7f0a484
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/resources/stubs/market_service_stub.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from typing import Dict
from datetime import datetime
from random import randint

Expand Down Expand Up @@ -33,11 +34,11 @@ def orders(self, value):
self._orders = value

@property
def balances(self) -> dict[str, float]:
def balances(self) -> Dict[str, float]:
return self._balances

@balances.setter
def balances(self, value: dict[str, float]):
def balances(self, value: Dict[str, float]):
self._balances = value

@property
Expand Down Expand Up @@ -150,7 +151,7 @@ def create_limit_sell_order(
trading_symbol=trading_symbol,
)

def get_balance(self, market) -> dict[str, float]:
def get_balance(self, market) -> Dict[str, float]:
return self._balances

def get_order(self, order, market):
Expand Down

0 comments on commit 7f0a484

Please sign in to comment.