Thanks for reviewing. I've fixed all comments and added the tests you suggested. Please find attached two updated patches. This still doesn't include warning for lambda docstrings: I think it could make sense to get these two patches merged to see if there is any feedback first.