Skip to content

Commit b94f421

Browse files
committed
Small update
1 parent cb8a7aa commit b94f421

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

python_typing_update/__main__.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -70,34 +70,34 @@ async def async_main(argv: list[str] | None = None) -> int:
7070
help="Don't abort with uncommited changes. Don't use it in production!",
7171
)
7272

73-
group1 = mode_options.add_mutually_exclusive_group()
74-
group1.add_argument(
73+
group_mode = mode_options.add_mutually_exclusive_group()
74+
group_mode.add_argument(
7575
'--check',
7676
action='store_true',
7777
help="Check if files would be updated",
7878
)
79-
group1.add_argument(
79+
group_mode.add_argument(
8080
'--force',
8181
action='store_true',
8282
help="Update all files. Double check changes afterwards!",
8383
)
84-
group1.add_argument(
84+
group_mode.add_argument(
8585
'--only-force',
8686
action='store_true',
8787
help="Only update files which are likely to require extra work",
8888
)
8989

90-
group2 = py_version_options.add_mutually_exclusive_group()
91-
group2.add_argument(
90+
group_py_version = py_version_options.add_mutually_exclusive_group()
91+
group_py_version.add_argument(
9292
'--py38-plus',
9393
action='store_const', dest='min_version', default=(3, 8), const=(3, 8),
9494
help="Default"
9595
)
96-
group2.add_argument(
96+
group_py_version.add_argument(
9797
'--py39-plus',
9898
action='store_const', dest='min_version', const=(3, 9),
9999
)
100-
group2.add_argument(
100+
group_py_version.add_argument(
101101
'--py310-plus',
102102
action='store_const', dest='min_version', const=(3, 10),
103103
)
@@ -109,7 +109,7 @@ async def async_main(argv: list[str] | None = None) -> int:
109109
if args.verbose > 0:
110110
logger.setLevel(logging.DEBUG)
111111

112-
if args.black is True:
112+
if args.black:
113113
try:
114114
# pylint: disable=unused-import,import-outside-toplevel
115115
import black # noqa: F401

0 commit comments

Comments
 (0)