Skip to content

Conversation

matiagimenez
Copy link

@matiagimenez matiagimenez commented May 12, 2025

Fixes #13

Describe your changes

  • Added functionality to check if a node requires a docstring by leveraging the _has_decorator method from the DocstringNode class. This ensures that nodes decorated with specific decorators, such as @overload, are correctly identified and excluded from the docstring_required check.

Checklist

  • Test cases have been modified/added to cover any code changes.
  • Docstrings have been modified/created for any code changes.
  • All linting and formatting checks pass (see the contributing guidelines for more information).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Don't require docstring if typing.overload decorator is there

1 participant