Skip to content

Commit 422d6de

Browse files
author
Aki Vänttinen
committed
python-sc2 version support
1 parent 66a549d commit 422d6de

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

bot_loader/killable_process.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import time
44

55
from typing import Any
6-
from sc2.sc2process import kill_switch
6+
from sc2.sc2process import KillSwitch
77

88
"""
99
Process that is automatically killed by sc2.
@@ -15,7 +15,7 @@ def __init__(self, process: Any, tmp_dir: str = None) -> None:
1515
self._tmp_dir = tmp_dir
1616
self._process: Any = process
1717
super().__init__()
18-
kill_switch.add(self)
18+
KillSwitch.add(self)
1919

2020
def _clean(self) -> None:
2121
"""

python-sc2

Submodule python-sc2 updated 117 files

sharpy/managers/core/unit_value.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import logging
2-
from typing import Union, Optional, List, Callable
2+
from typing import Union, Optional, List, Callable, Dict
33

44
from sc2.data import Race, race_townhalls
55
from sharpy.general.unit_feature import UnitFeature

0 commit comments

Comments
 (0)