Skip to content

Warning: function based directive support is now deprecated. #467

@rscohn2

Description

@rscohn2

I was trying to clear all warnings in my project. This problem is not blocking me.

Using breathe 4.14.0 from pip, I see this warning:

[app] setting up extension: 'breathe'
[app] adding directive: ('doxygenindex', <breathe.directives.DirectiveContainer object at 0x7f9a3804f048>, None, None, {})
/home/rscohn1/.local/lib/python3.6/site-packages/sphinx/util/docutils.py:285: RemovedInSphinx30Warning: function based directive support is now deprecated. Use class based directive instead.
  RemovedInSphinx30Warning)

sphinx is testing for isclass. breathe is passing an object, not a class

    def create_directive_container(self, type_):

        return DirectiveContainer(
            self.directives[type_],
            self.finder_factory,
            self.project_info_factory,
            self.filter_factory,
            self.target_handler_factory,
            self.parser_factory
            )

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions