Skip to content

Commit 7f0a484

Browse files
committed
Fix type checking
1 parent b2896aa commit 7f0a484

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

tests/resources/stubs/market_service_stub.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
from typing import Dict
12
from datetime import datetime
23
from random import randint
34

@@ -33,11 +34,11 @@ def orders(self, value):
3334
self._orders = value
3435

3536
@property
36-
def balances(self) -> dict[str, float]:
37+
def balances(self) -> Dict[str, float]:
3738
return self._balances
3839

3940
@balances.setter
40-
def balances(self, value: dict[str, float]):
41+
def balances(self, value: Dict[str, float]):
4142
self._balances = value
4243

4344
@property
@@ -150,7 +151,7 @@ def create_limit_sell_order(
150151
trading_symbol=trading_symbol,
151152
)
152153

153-
def get_balance(self, market) -> dict[str, float]:
154+
def get_balance(self, market) -> Dict[str, float]:
154155
return self._balances
155156

156157
def get_order(self, order, market):

0 commit comments

Comments
 (0)