Skip to content

Commit

Permalink
Replace set method calls with operators
Browse files Browse the repository at this point in the history
  • Loading branch information
realshouzy committed Jun 15, 2024
1 parent 1ced4c3 commit 6432e56
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pip_manage/pip_purge.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ def main( # pylint: disable=R0914, R0915 # noqa: PLR0915
args, forwarded = _parse_args(argv)
uninstall_args: list[str] = filter_forwards_include(
forwarded,
UNINSTALL_ONLY.union(COMMON_PARAMETERS),
UNINSTALL_ONLY | COMMON_PARAMETERS,
)
setup_logging(__title__, debugging=args.debugging)
logger: logging.Logger = logging.getLogger(__title__)
Expand Down
4 changes: 2 additions & 2 deletions pip_manage/pip_review.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,12 +246,12 @@ def main( # pylint: disable=R0915 # noqa: PLR0915
list_args: list[str] = filter_forwards(
forwarded,
exclude=INSTALL_ONLY,
include=LIST_ONLY.union(COMMON_PARAMETERS.difference(("verbose", "v"))),
include=LIST_ONLY | COMMON_PARAMETERS - {"verbose", "v"},
)
install_args: list[str] = filter_forwards(
forwarded,
exclude=LIST_ONLY,
include=INSTALL_ONLY.union(COMMON_PARAMETERS),
include=INSTALL_ONLY | COMMON_PARAMETERS,
)
setup_logging(__title__, debugging=args.debugging)
logger: logging.Logger = logging.getLogger(__title__)
Expand Down

0 comments on commit 6432e56

Please # to comment.