Skip to content

Commit 702f781

Browse files
committed
style cleaning
1 parent 38a52f1 commit 702f781

File tree

4 files changed

+471
-342
lines changed

4 files changed

+471
-342
lines changed

sc2reader/engine/plugins/creeptracker.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,9 +123,9 @@ def __init__(self, replay):
123123
self.unit_name_to_radius = {"CreepTumor": 10, "Hatchery": 8, "NydusCanal": 5}
124124
self.radius_to_coordinates = dict()
125125
for x in self.unit_name_to_radius:
126-
self.radius_to_coordinates[
127-
self.unit_name_to_radius[x]
128-
] = self.radius_to_map_positions(self.unit_name_to_radius[x])
126+
self.radius_to_coordinates[self.unit_name_to_radius[x]] = (
127+
self.radius_to_map_positions(self.unit_name_to_radius[x])
128+
)
129129
# Get map information
130130
replayMap = replay.map
131131
# extract image from replay package

sc2reader/events/game.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -766,11 +766,13 @@ def __init__(self, frame, pid, data):
766766
#: Information on the users hijacking the game
767767
self.user_infos = data["user_infos"]
768768

769+
769770
@loggable
770771
class DialogControlEvent(GameEvent):
771772
"""
772773
Generated when a dialog is interacted with.
773774
"""
775+
774776
def __init__(self, frame, pid, data):
775777
super().__init__(frame, pid)
776778

@@ -781,4 +783,4 @@ def __init__(self, frame, pid, data):
781783
self.event_type = data["event_type"]
782784

783785
#: Data specific to event type such as changes or clicks
784-
self.event_data = data["event_data"]
786+
self.event_data = data["event_data"]

0 commit comments

Comments
 (0)