Skip to content

Commit 602adde

Browse files
[pylint consider-using-any-or-all] noqa a a suggestion in already nested for
1 parent 27b1dd6 commit 602adde

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,6 @@ disable = [
213213
"condition-evals-to-constant",
214214
"consider-alternative-union-syntax",
215215
"confusing-consecutive-elif",
216-
"consider-using-any-or-all",
217216
"consider-using-assignment-expr",
218217
"consider-using-dict-items",
219218
"consider-using-from-import",

src/_pytest/mark/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -238,10 +238,9 @@ def __call__(self, name: str, /, **kwargs: str | int | bool | None) -> bool:
238238
if not (matches := self.own_mark_name_mapping.get(name, [])):
239239
return False
240240

241-
for mark in matches:
241+
for mark in matches: # pylint: disable=consider-using-any-or-all
242242
if all(mark.kwargs.get(k, NOT_SET) == v for k, v in kwargs.items()):
243243
return True
244-
245244
return False
246245

247246

0 commit comments

Comments
 (0)