Skip to content

Commit 9d69b3d

Browse files
committed
Use NOT_SET constant instead of string literal
1 parent 52d83ac commit 9d69b3d

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/_pytest/config/argparsing.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -359,10 +359,7 @@ def __repr__(self) -> str:
359359
args += ["_short_opts: " + repr(self._short_opts)]
360360
if self._long_opts:
361361
args += ["_long_opts: " + repr(self._long_opts)]
362-
if hasattr(self, "dest"):
363-
args += ["dest: " + repr(self.dest)]
364-
else:
365-
args += ["dest: <not set>"]
362+
args += ["dest: " + repr(getattr(self, "dest", NOT_SET))]
366363
if hasattr(self, "type"):
367364
args += ["type: " + repr(self.type)]
368365
if hasattr(self, "default"):

0 commit comments

Comments
 (0)