pyramda icon indicating copy to clipboard operation
pyramda copied to clipboard

pylint complains "No value for argument 'dict' in function call (no-value-for-parameter)" with R.pick

Open AdamWagner opened this issue 4 years ago • 1 comments

python v3.7.7 pylint v2.4.4 ramda v0.5.7

import ramda as R

old_list_of_objs = [{'name': 'a good name', 'age': 99, 'color': 'red'}, {'name': 'also a good name', 'age': 100, 'color': 'blue'}]

keys = ['name', 'age']

new_list_of_objs = list(map(R.pick(keys), old_list_of_objs)) # No value for argument 'dict' in function call (no-value-for-parameter)

R.pick does what it says on the label, but pylint complains. Of course this is resolvable by adding # pylint: disable=no-value-for-parameter before the line in question, but a linting error suggests that something may be awry with the library.

If this is user-error, I'd be grateful for an explanation of how I could avoid this linting error (other than with a disabling comment).

AdamWagner avatar Jun 28 '20 16:06 AdamWagner