distutils: expose Command.dry_run + make 0|1 attrs bool (#12607)

This commit is contained in:
Avasam
2024-08-30 12:32:54 -04:00
committed by GitHub
parent 4109c06d07
commit f87041e118
4 changed files with 8 additions and 6 deletions

View File

@@ -30,6 +30,7 @@ _CommandT = TypeVar("_CommandT", bound=Command)
_Ts = TypeVarTuple("_Ts")
class Command:
dry_run: Literal[0, 1] # Exposed from __getattr_. Same as Distribution.dry_run
distribution: Distribution
# Any to work around variance issues
sub_commands: ClassVar[list[tuple[str, Callable[[Any], bool] | None]]]