Skip to content

Commit f49251f

Browse files
Apply ruff/Pylint rule PLR1714
PLR1714 Consider merging multiple comparisons
1 parent f3d5bed commit f49251f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pytest_dependency.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def addResult(self, item, name, rep):
6464
# the node ids of class methods to denote the class
6565
# instance. This has been removed in pytest 4.0.0.
6666
nodeid = item.nodeid.replace("::()::", "::")
67-
if self.scope == 'session' or self.scope == 'package':
67+
if self.scope in {'session', 'package'}:
6868
name = nodeid
6969
elif self.scope == 'module':
7070
name = nodeid.split("::", 1)[1]

0 commit comments

Comments
 (0)