Skip to content

Commit ba6b87c

Browse files
committed
Remove unused parse_inline_code util
1 parent c9f2c40 commit ba6b87c

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

array_api_tests/test_special_cases.py

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -173,24 +173,6 @@ def parse_value(value_str: str) -> float:
173173
r_approx_value = re.compile(
174174
rf"an implementation-dependent approximation to {r_code.pattern}"
175175
)
176-
177-
178-
def parse_inline_code(inline_code: str) -> float:
179-
"""
180-
Parses a Sphinx code string to return a float, e.g.
181-
182-
>>> parse_value('``0``')
183-
0.
184-
>>> parse_value('``NaN``')
185-
float('nan')
186-
187-
"""
188-
if m := r_code.match(inline_code):
189-
return parse_value(m.group(1))
190-
else:
191-
raise ParseError(inline_code)
192-
193-
194176
r_not = re.compile("not (.+)")
195177
r_equal_to = re.compile(f"equal to {r_code.pattern}")
196178
r_array_element = re.compile(r"``([+-]?)x([12])_i``")

0 commit comments

Comments
 (0)