summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorAshley Whetter <AWhetter@users.noreply.github.com>2019-05-22 23:17:33 -0700
committerClaudiu Popa <pcmanticore@gmail.com>2019-05-23 08:17:33 +0200
commitf90b223a5ea70a0b9a52034280fe22638e6ef14d (patch)
tree80611757a3dc94a7f19b5d734fdc73e1517e562b /doc
parentf4fc3a1bbcb58a2f4d110e9bbc76d57f29172ada (diff)
downloadpylint-git-f90b223a5ea70a0b9a52034280fe22638e6ef14d.tar.gz
Can choose decorators that mutate a function's signature (#2926)
Close #259
Diffstat (limited to 'doc')
-rw-r--r--doc/whatsnew/2.4.rst11
1 files changed, 11 insertions, 0 deletions
diff --git a/doc/whatsnew/2.4.rst b/doc/whatsnew/2.4.rst
index 42fe36c2c..fa9cc5d3b 100644
--- a/doc/whatsnew/2.4.rst
+++ b/doc/whatsnew/2.4.rst
@@ -116,3 +116,14 @@ The following does not trigger a ``missing-return-doc`` anymore ::
List of strings
"""
return ["hi", "bye"] #@
+
+* Can choose to ignore `too-many-function-args`, `unexpected-keyword-arg`,
+ and `no-value-for-parameter` for functions decorated with certain decorators.
+
+For example a test may want to make use of hypothesis.
+Adding `hypothesis.extra.numpy.arrays` to `function_mutators`
+would mean that `no-value-for-parameter` would not be raised for::
+
+ @given(img=arrays(dtype=np.float32, shape=(3, 3, 3, 3)))
+ def test_image(img):
+ ...