Skip to content

Commit

Permalink
refactor: use 'not in'
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleKing committed Feb 2, 2025
1 parent 55db115 commit ebf479d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mdformat/_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ def make_arg_parser(
plugin.add_cli_argument_group(group)
for action in group._group_actions:
action.dest = f"plugin.{plugin_id}.{action.dest}"
if not (action.default is None or action.default == argparse.SUPPRESS):
if action.default not in {None, argparse.SUPPRESS}:
import warnings

text = (
Expand Down

0 comments on commit ebf479d

Please sign in to comment.