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

DOC202 false positive when function doesn't return #12650

Closed
NeilGirdhar opened this issue Aug 2, 2024 · 1 comment · Fixed by #12651
Closed

DOC202 false positive when function doesn't return #12650

NeilGirdhar opened this issue Aug 2, 2024 · 1 comment · Fixed by #12651
Labels
bug Something isn't working docstring Related to docstring linting or formatting

Comments

@NeilGirdhar
Copy link

class C:
    def f(self) -> int:
        """Calculate x.

        Returns:
            x
        """
        raise NotImplementedError

Raises DOC202

@charliermarsh charliermarsh added bug Something isn't working docstring Related to docstring linting or formatting labels Aug 2, 2024
@charliermarsh
Copy link
Member

Thanks! Makes sense.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working docstring Related to docstring linting or formatting
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants