Closed KelSolaar closed 1 year ago
I'm not sure I understand the difference between this and #165? In any case, trying this with the version from main
results in this diff:
--- file.rst 2022-11-01 10:18:10.370537 +0000
+++ file.rst 2022-11-01 10:20:07.750494 +0000
@@ -5,6 +5,6 @@
.. code-block:: python
>>> interpolator = scipy.interpolate.interp1d(
- ... wavelengths, values, axis=-1, kind="linear",
- ... fill_value="extrapolate") # doctest: +SKIP
+ ... wavelengths, values, axis=-1, kind="linear", fill_value="extrapolate"
+ ... ) # doctest: +SKIP
>>> values_i = interpolator(wavelengths_i) # doctest: +SKIP
so I think this can be closed as a duplicate, as well?
one thing that might be interesting is the doctest
comment / pragma. Does that still work if it is on the last line?
I'm not sure I understand the difference between this and https://github.com/keewis/blackdoc/issues/165?
The difference is that #165 occurs in a rst file where here it is in a py file. As there might be potential parsing differences, I made two separate issues but this might very well be the same problem under the hood, I will try your suggestion tonight!
ah, right, that makes sense. And indeed I can confirm that under the hood this is the same problem, which will be fixed with the next release.
Awesome thank you!
I just released a new version. Closing, but feel free to reopen if that didn't fix your issue.
Thanks @keewis, this fixed it perfectly!
Hello,
Blackdoc
is seemingly unable to parse the following reStructuredText in a Python module: