Skip to content

Use actual boolean parameters and variables - #253

Merged
jaraco merged 2 commits into
pypa:mainfrom
Avasam:use-actual-booleans
Jun 27, 2024
Merged

Use actual boolean parameters and variables#253
jaraco merged 2 commits into
pypa:mainfrom
Avasam:use-actual-booleans

Conversation

@Avasam

@Avasam Avasam commented May 17, 2024

Copy link
Copy Markdown
Contributor

Same as pypa/setuptools#4365 but for distutils

This PR intends to contain no logic change. Only literal type changes. There should be no visible runtime changes for users. Nor type-checkers yet as setuptools doesn't currently expose distutils statically.

Based on the following regex:
(create|direct|reinit_subcommands|plat_specific|include_bytecode|is_regex|anchor|strict|restructuredtext|verbose|no_ep|inplace|preserve_mode|preserve_times|search_path|dry_run|global_options|display_options|strip_comments|skip_blanks|join_lines|lstrip_ws|rstrip_ws|collapse_join|force|infiles|skip_build|install_path_file|replace|debug|warn_dir|strip_dir|preserve_symlinks|update|standard_lib|decl|call|finalized|use_rpm_opt_flags|rpm3_mode|no_autoreq|quiet|use_defaults|prune|manifest_only|force_manifest|keep_temp|user|help|show_response|relative|compile|checked|list_classifiers|show_response) ?= ?0 --> $1=False (similar for 1 --> True)

@Avasam
Avasam force-pushed the use-actual-booleans branch from a5103b0 to 1e1e1b7 Compare May 17, 2024 22:16
@jaraco
jaraco merged commit 32a906d into pypa:main Jun 27, 2024
@Avasam
Avasam deleted the use-actual-booleans branch June 27, 2024 14:29
jaraco added a commit that referenced this pull request Jun 28, 2024
Use actual boolean parameters and variables
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants