Skip to content

Commit

Permalink
naming
Browse files Browse the repository at this point in the history
  • Loading branch information
bdraco committed Oct 6, 2024
1 parent 7a005b6 commit 0349148
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,15 +78,15 @@ def pytest_addoption(
"""
del pluginmanager

action: Union[str, Type[argparse.Action]]
arg_parse_action: Union[str, Type[argparse.Action]]
if PY_38_AND_BELOW:
action = "store_true"
arg_parse_action = "store_true"
else:
action = argparse.BooleanOptionalAction # type: ignore[attr-defined, unused-ignore] # noqa
arg_parse_action = argparse.BooleanOptionalAction # type: ignore[attr-defined, unused-ignore] # noqa

parser.addoption(
"--c-extensions", # disabled with `--no-c-extensions`
action=action,
action=arg_parse_action,
default=True,
dest="c_extensions",
help="Test C-extensions (on by default)",
Expand Down

0 comments on commit 0349148

Please sign in to comment.