Skip to content

Commit 6fd85f7

Browse files
committed
Fix mass_reaper type hints
1 parent f69aec3 commit 6fd85f7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

dockerfiles/test_docker_image.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ docker cp test test_container:/root/python-sc2/test
4141
# Run various test bots
4242
docker exec -i test_container bash -c "cd python-sc2 && uv run python test/travis_test_script.py test/autotest_bot.py"
4343
docker exec -i test_container bash -c "cd python-sc2 && uv run python test/travis_test_script.py test/queries_test_bot.py"
44-
#docker exec -i test_container bash -c "cd python-sc2 && uv run python test/travis_test_script.py test/damagetest_bot.py"
44+
docker exec -i test_container bash -c "cd python-sc2 && uv run python test/travis_test_script.py test/damagetest_bot.py"
4545

4646
docker cp examples test_container:/root/python-sc2/examples
4747
docker exec -i test_container bash -c "cd python-sc2 && uv run python test/run_example_bots_vs_computer.py"

examples/terran/mass_reaper.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -310,8 +310,8 @@ async def my_distribute_workers(self, performance_heavy=True, only_saturate_gas=
310310
surplus_gas_buildings[g.tag] = {"unit": g, "deficit": deficit}
311311

312312
# Find all townhalls that have surplus or deficit
313-
deficit_townhalls = dict[int, dict[Literal["unit", "deficit"], Unit | int]]()
314-
surplus_townhalls = dict[int, dict[Literal["unit", "deficit"], Unit | int]]()
313+
deficit_townhalls: dict[int, dict[Literal["unit", "deficit"], Unit | int]] = {}
314+
surplus_townhalls: dict[int, dict[Literal["unit", "deficit"], Unit | int]] = {}
315315
if not only_saturate_gas:
316316
for th in self.townhalls:
317317
deficit = th.ideal_harvesters - th.assigned_harvesters

0 commit comments

Comments
 (0)