We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
parse_inline_code
1 parent c9f2c40 commit ba6b87cCopy full SHA for ba6b87c
array_api_tests/test_special_cases.py
@@ -173,24 +173,6 @@ def parse_value(value_str: str) -> float:
173
r_approx_value = re.compile(
174
rf"an implementation-dependent approximation to {r_code.pattern}"
175
)
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
194
r_not = re.compile("not (.+)")
195
r_equal_to = re.compile(f"equal to {r_code.pattern}")
196
r_array_element = re.compile(r"``([+-]?)x([12])_i``")
0 commit comments