mirror of
https://github.com/coding-horror/basic-computer-games.git
synced 2025-12-30 06:31:46 -08:00
Fixes the type check failures for python implementations, boxing.py and Stock_Market.py
This commit is contained in:
@@ -34,7 +34,7 @@ class Stock_Market:
|
||||
return self.cash_assets + self.stock_assets
|
||||
|
||||
def _generate_day_change(self) -> None:
|
||||
self.changes = []
|
||||
self.changes: List[float] = []
|
||||
self.changes.extend(
|
||||
round(random.uniform(-5, 5), 2) for _ in range(len(self.data))
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user