Skip to content

Commit f56f7c5

Browse files
committed
config: tiny style improvement
1 parent 4f07180 commit f56f7c5

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/_pytest/config/argparsing.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -320,9 +320,7 @@ def names(self) -> list[str]:
320320

321321
def attrs(self) -> Mapping[str, Any]:
322322
# Update any attributes set by processopt.
323-
attrs = "default dest help".split()
324-
attrs.append(self.dest)
325-
for attr in attrs:
323+
for attr in ("default", "dest", "help", self.dest):
326324
try:
327325
self._attrs[attr] = getattr(self, attr)
328326
except AttributeError:

0 commit comments

Comments
 (0)