Closed HugoMVale closed 6 months ago
Hello @HugoMVale, thanks for the report :slightly_smiling_face:
Some time ago we updated our Numpydoc-style docstring parser to improve its compliance with the official style guide, which does not explicitly allow prose in between or after known sections.
Admonitions like !!! info
are prose (Markdown markup), and therefore are not supported anymore after known sections like Parameters, etc..
Instead, please use the style-specific support for admonitions:
def foo(x: float) -> float:
"""Foo function.
Note
----
This works.
Parameters
----------
x : float
Number
Returns
-------
float
Square of number.
Note
----
This works too.
"""
return x**2
Closing, but feel free to comment further!
Description of the bug
To Reproduce
The doc of
foo
in the example below shows the problemFull traceback
Expected behavior
Annotations placed after the parameters section should also work (they used to!).
Environment information