darglint2 icon indicating copy to clipboard operation
darglint2 copied to clipboard

Darglint ignores empty docstrings

Open fiksii-copilot opened this issue 8 months ago • 2 comments

File: test_darglint.py

def f(x):
    return x*2

darglint2 test_darglint.py returns nothing while if I change the function

def f(x):
    """
    """
    return x*2

darglint2 test_darglint.py returns

.\test_darglint.py:f:1: DAR201: - return .\test_darglint.py:f:1: DAR101: - x

How to make an alert if there is no docstring in the function

fiksii-copilot avatar Jun 06 '24 12:06 fiksii-copilot