Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add stubs for docutils.parsers.rst.directives #5755

Closed
adamtheturtle opened this issue Jul 10, 2021 · 1 comment
Closed

Add stubs for docutils.parsers.rst.directives #5755

adamtheturtle opened this issue Jul 10, 2021 · 1 comment
Labels
stubs: incomplete Annotations or sub-modules missing from an existing package or module

Comments

@adamtheturtle
Copy link
Contributor

Checking the following with mypy:

from docutils.parsers.rst import directives

gives:

src/sphinx_substitution_extensions/__init__.py:10: error: Module "docutils.parsers.rst" has no attribute "directives"; maybe "Directive"?

Relevant source code:

https://sourceforge.net/p/docutils/code/HEAD/tree/trunk/docutils/docutils/parsers/rst/directives/

@srittau srittau added the stubs: incomplete Annotations or sub-modules missing from an existing package or module label Jul 10, 2021
@AlexWaygood
Copy link
Member

Fixed in #7256. (Further PRs to improve our docutils stubs are always welcome!)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stubs: incomplete Annotations or sub-modules missing from an existing package or module
Projects
None yet
Development

No branches or pull requests

3 participants