You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I put a url into the See Also section, I get a raw numpydoc.docscrape.ParseError:
deff(a):
"""Test function Parameters ---------- a : int The first parameter. See Also -------- https://numpydoc.readthedocs.io/en/latest/format.html#see-also """returna
Traceback
something went wrong with test.py:f :
Test function.
Parameters
----------
a : int
The first parameter.
See Also
--------
https://numpydoc.readthedocs.io/en/latest/format.html#see-also
Traceback (most recent call last):
File ".../lib/python3.9/site-packages/velin/ref.py", line 709, in compute_new_doc
doc = NumpyDocString(dedend_docstring(docstr))
File ".../lib/python3.9/site-packages/velin/ref.py", line 245, in __init__super().__init__(*args, **kwargs)
File ".../lib/python3.9/site-packages/numpydoc/docscrape.py", line 147, in __init__self._parse()
File ".../lib/python3.9/site-packages/numpydoc/docscrape.py", line 402, in _parseself['See Also'] =self._parse_see_also(content)
File ".../lib/python3.9/site-packages/numpydoc/docscrape.py", line 324, in _parse_see_alsoraise ParseError("%s is not a item name"% line)
numpydoc.docscrape.ParseError: https://numpydoc.readthedocs.io/en/latest/format.html#see-also is not a item name in '\nTest function.\n\nParameters\n----------\na : int\n The first parameter.\n\nSee Also\n--------\nhttps://numpydoc.readthedocs.io/en/latest/format.html#see-also\n'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File ".../bin/velin", line 8, in <module>
sys.exit(main())
File ".../lib/python3.9/site-packages/velin/ref.py", line 1074, in main
new, _fail_check = _reformat_file(
File ".../lib/python3.9/site-packages/velin/ref.py", line 842, in _reformat_file
new_doc, d_, jump_to_loc, _fail_check = compute_new_doc(
File ".../lib/python3.9/site-packages/velin/ref.py", line 711, in compute_new_docraisetype(e)(f"error in {fname}:{func_name}") from e
numpydoc.docscrape.ParseError: error in test.py:f
This is probably not the right way to link to external resources, but even in that case I wouldn't expect to see a stacktrace.
The text was updated successfully, but these errors were encountered:
If I put a url into the
See Also
section, I get a rawnumpydoc.docscrape.ParseError
:Traceback
This is probably not the right way to link to external resources, but even in that case I wouldn't expect to see a stacktrace.
The text was updated successfully, but these errors were encountered: