Skip to content

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

Closed

Description

@adamtheturtle

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/

Activity

  1. added
    stubs: incompleteAnnotations or sub-modules missing from an existing package or module
    on Jul 10, 2021
  2. AlexWaygood commented on Nov 1, 2023

    @AlexWaygood
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    stubs: incompleteAnnotations or sub-modules missing from an existing package or module

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions