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).
python v3.7.7 pylint v2.4.4 ramda v0.5.7
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).