Make clear that `drop_keys` mutates in-place.
@@ -741,14 +741,10 @@ class TestSplitMatchContract(_BaseTestCase):
def drop_keys(keys, array, strict=False):
- rv = []
for item in array:
for k in keys:
item.pop(k) if strict else item.pop(k, None)
- rv.append(item)
- return rv
-
drop_info_keys = partial(drop_keys, ['error_type', 'code', 'msg', 'linter'])
drop_position_keys = partial(drop_keys, ['line', 'start', 'end', 'region'])
