TypeError: __init__() missing 2 required positional arguments: 'short_desc' and 'context' with newer pydocstyle
This is with pydocstyle 2.1.0
$ python setup.py flake8
running flake8
Traceback (most recent call last):
File "/home/travis/virtualenv/python3.5.3/lib/python3.5/site-packages/flake8_docstrings.py", line 64, in _check_source
ignore_decorators=None,
File "/home/travis/virtualenv/python3.5.3/lib/python3.5/site-packages/pydocstyle/checker.py", line 64, in check_source
module = parse(StringIO(source), filename)
File "/home/travis/virtualenv/python3.5.3/lib/python3.5/site-packages/pydocstyle/parser.py", line 305, in __call__
return self.parse(*args, **kwargs)
File "/home/travis/virtualenv/python3.5.3/lib/python3.5/site-packages/pydocstyle/parser.py", line 300, in parse
return self.parse_module()
File "/home/travis/virtualenv/python3.5.3/lib/python3.5/site-packages/pydocstyle/parser.py", line 451, in parse_module
children = list(self.parse_definitions(Module, all=True))
File "/home/travis/virtualenv/python3.5.3/lib/python3.5/site-packages/pydocstyle/parser.py", line 394, in parse_definitions
self.parse_all()
File "/home/travis/virtualenv/python3.5.3/lib/python3.5/site-packages/pydocstyle/parser.py", line 419, in parse_all
raise AllError('Could not evaluate contents of __all__. ')
pydocstyle.parser.AllError: Could not evaluate contents of __all__.
That means pydocstyle cannot decide which definitions are
public. Variable __all__ should be present at most once in
each file, in form
`__all__ = ('a_public_function', 'APublicClass', ...)`.
More info on __all__: http://stackoverflow.com/q/44834/. ')
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "setup.py", line 67, in <module>
zip_safe=True)
File "/opt/python/3.5.3/lib/python3.5/distutils/core.py", line 148, in setup
dist.run_commands()
File "/opt/python/3.5.3/lib/python3.5/distutils/dist.py", line 955, in run_commands
self.run_command(cmd)
File "/opt/python/3.5.3/lib/python3.5/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/home/travis/virtualenv/python3.5.3/lib/python3.5/site-packages/flake8/main/setuptools_command.py", line 91, in run
self.flake8.run_checks(list(self.distribution_files()))
File "/home/travis/virtualenv/python3.5.3/lib/python3.5/site-packages/flake8/main/application.py", line 266, in run_checks
self.file_checker_manager.run()
File "/home/travis/virtualenv/python3.5.3/lib/python3.5/site-packages/flake8/checker.py", line 319, in run
self.run_serial()
File "/home/travis/virtualenv/python3.5.3/lib/python3.5/site-packages/flake8/checker.py", line 303, in run_serial
checker.run_checks()
File "/home/travis/virtualenv/python3.5.3/lib/python3.5/site-packages/flake8/checker.py", line 577, in run_checks
self.run_ast_checks()
File "/home/travis/virtualenv/python3.5.3/lib/python3.5/site-packages/flake8/checker.py", line 491, in run_ast_checks
for (line_number, offset, text, check) in runner:
File "/home/travis/virtualenv/python3.5.3/lib/python3.5/site-packages/flake8_docstrings.py", line 74, in run
for error in self._check_source():
File "/home/travis/virtualenv/python3.5.3/lib/python3.5/site-packages/flake8_docstrings.py", line 67, in _check_source
return [AllError(err)]
TypeError: __init__() missing 2 required positional arguments: 'short_desc' and 'context'
See e.g. this build: https://travis-ci.org/diofant/diofant/jobs/285040721