Closed jrbourbeau closed 2 years ago
thanks for the report, @jrbourbeau. This should be pretty easy to fix (it's a matter of skipping the rst formatter for code blocks with prompt lines; there's similar code for the ipython
prompt), but it might take me some time to create a PR.
Note that
.. ::
>>> import dask.dataframe as dd
is equivalent to
>>> import dask.dataframe as dd
(i.e. blackdoc
does not care about the block for doctest lines... except the bug reported here, of course)
However, this:
.. ::
import dask.dataframe as dd
or
description::
import dask.dataframe as dd
will most likely always be ignored, because the language depends on a sphinx
setting / a directive somewhere earlier in the document.
In any case, the bug should be fixed by #151.
Thanks for the fix @keewis! Looking forward to taking this for a spin
When using
blackdoc
(v0.3.7) on this.rst
snippetI get
However, when I update the
.rst
towhich should be equivalent,
blackdoc
is happy.