terrencepreilly / darglint

A python documentation linter which checks that the docstring description matches the definition.
MIT License
481 stars 41 forks source link

Version 1.5.6 is raising DAR101 for lambda functions #143

Closed DrewDevereux closed 3 years ago

DrewDevereux commented 3 years ago

Version 1.5.6 is raising DAR101 error for functions that contain invokations of lambda functions. e.g.

def func():
    """
    Do stuff
    """
    x = lambda lambda_arg: lambda_arg+1

will complain that func is missing lambda_arg parameter in its docstring.

DrewDevereux commented 3 years ago

Sorry, closing this as dup of 142