twisted / pydoctor

This is pydoctor, an API documentation generator that works by static analysis.
https://pydoctor.readthedocs.io
Other
183 stars 49 forks source link

Fix the mypy errors raised by `tox -e mypy-docutils-stubs` #409

Open tristanlatr opened 3 years ago

tristanlatr commented 3 years ago

Since #403, there is this new tox command: tox -e mypy-docutils-stubs.

It currently generates 57 new mypy errors in 2 files and it really looks like a headache to sort out. Anyway, I don't want to touch this code too much right now, it's been working great. Also, I've split the implementation of docutils related helper and classes into different modules in #386, so adding a lot of changes to restructuredtext.py before merging #386 would create a lot of conflicts.

tristanlatr commented 3 years ago

Ideally, we should use docutils-stubs in the regular mypy env and get rid of this extra env.