Skip to content

Commit 29e0a54

Browse files
committed
type annotation
[skip ci]
1 parent f9f0806 commit 29e0a54

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

service/port/muta.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ def parseMutant(lines):
7272

7373

7474
def parseMutantAttrs(line):
75+
# type: (str) -> dict[int, float]
7576
mutations = {}
7677
pairs = [p.strip() for p in line.split(',')]
7778
for pair in pairs:

service/port/xml.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ def handler(name):
132132

133133

134134
def _solve_module(hardware, sMkt, b_localized):
135-
# type: (minidom.Element, Market, bool) -> Item
135+
# type: (minidom.Element, Market, bool) -> tuple[Item, Item|None, dict[int, float]|None]
136136
def handler(name):
137137
# type: (str) -> Item
138138
item = sMkt.getItem(name, eager="group.category")

0 commit comments

Comments
 (0)