Skip to content

Warns section is being misinterpretted as a Raises section #262

@oliversheridanmethven

Description

@oliversheridanmethven

I have a function which warns but does not raise. The numpy style guide has a section specifically for Warns. However, the tool is raising a DOC502 error saying that my function raises in the docstring but does not raise in the body. This is a false negative.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions