Skip to content

Commit f5ac55d

Browse files
committed
Fixed mypy issues
1 parent 7082009 commit f5ac55d

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

synth/syntax/grammars/enumeration/a_star.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def generator(self) -> Generator[Program, None, None]:
8282
A generator which outputs the next most probable program
8383
"""
8484
first = (self.G.start[0], self.G.start[1][0]) # type: ignore
85-
heappush(self.frontier, HeapElement(0, [first], [])) # type: ignore
85+
heappush(self.frontier, HeapElement(0, [first], []))
8686

8787
while self.frontier:
8888
elem = heappop(self.frontier)
@@ -97,9 +97,9 @@ def generator(self) -> Generator[Program, None, None]:
9797
args = self.G.rules[S][P][0] # type: ignore
9898
p = self.G.probabilities[S][P] # type: ignore
9999
new_el = HeapElement(
100-
elem.priority + p,
100+
elem.priority + p, # type: ignore
101101
elem.to_expand + list(args),
102-
elem.parts + [(P, S)], # type: ignore
102+
elem.parts + [(P, S)],
103103
)
104104
heappush(self.frontier, new_el)
105105

0 commit comments

Comments
 (0)