-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Open
Labels
False Negative 🦋No message is emitted but something is wrong with the codeNo message is emitted but something is wrong with the codeNeeds PRThis issue is accepted, sufficiently specified and now needs an implementationThis issue is accepted, sufficiently specified and now needs an implementation
Description
Bug description
False negative :
Warning "missing param doc" should'nt be raised when these type of docstring format:
def func(x: int = 0):
"""This is func.
Parameter
---------
x : int, default 0 # this raises the warning
The x parameter
"""
# ...
Configuration
[MASTER]
load-plugins =
pylint.extensions.docstyle,
pylint.extensions.docparams
[MESSAGES CONTROL]
enable = W
[BASIC]
accept-no-param-doc = no
Command used
pylint --rcfile=tox.ini a.py
Pylint output
"orientation" missing in parameter documentation
Expected behavior
No warning
In fact, numpy style doc says:
These are all equivalent:
copy : bool, default True copy : bool, default=True copy : bool, default: True
Pylint version
pylint 2.13.5
astroid 2.11.2
Python 3.9.12 (main, Mar 24 2022, 16:20:11)
[GCC 9.4.0]
OS / Environment
Ubuntu 20.04
Additional dependencies
No response
lkev, ttekampe, adam-grant-hendry and JesusTorrado
Metadata
Metadata
Assignees
Labels
False Negative 🦋No message is emitted but something is wrong with the codeNo message is emitted but something is wrong with the codeNeeds PRThis issue is accepted, sufficiently specified and now needs an implementationThis issue is accepted, sufficiently specified and now needs an implementation