Issue #1547 closed

Document parser breaks quietly when encountering Ellipsis (...)

Anonymous created an issue

The autodoc parser breaks when it encounters ... in a file. This breaks adding annotations to class attributes (see attachments).

It gives no error unless -vv is enabled, when it produces:

[autodoc] => <class 'bad.Bar'>
[autodoc] module analyzer failed: parsing failed (exception was: ParseError("bad input: type=23, value='.', context=('', (2, 7))",))

Attached '' shows a broken example, attached '' shows that it works if ... is changed to Ellipsis. Minimal '' and 'index.rst' also included.

Comments (7)

  1. Log in to comment