distutils: Allow overriding Command and Distribution boolean attributes with actual bool in subclasses (#13615)

This commit is contained in:
Avasam authored and GitHub committed 2025-03-11 11:18:03 +01:00
1 parent 041580d6d6
commit 1f2ceccfae
2 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -30,7 +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
dry_run: bool | 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]]]