Skip to content

Commit 0ca47e8

Browse files
github-actions[bot]hauntsaninjaAlexWaygood
authored
Sync typeshed (#17729)
Source commit: python/typeshed@23d867e Note that you will need to close and re-open the PR in order to trigger CI. --------- Co-authored-by: mypybot <> Co-authored-by: Shantanu <[email protected]> Co-authored-by: AlexWaygood <[email protected]>
1 parent 0a6d40b commit 0ca47e8

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

mypy/typeshed/stdlib/distutils/cmd.pyi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ _CommandT = TypeVar("_CommandT", bound=Command)
3030
_Ts = TypeVarTuple("_Ts")
3131

3232
class Command:
33+
dry_run: Literal[0, 1] # Exposed from __getattr_. Same as Distribution.dry_run
3334
distribution: Distribution
3435
# Any to work around variance issues
3536
sub_commands: ClassVar[list[tuple[str, Callable[[Any], bool] | None]]]

mypy/typeshed/stdlib/distutils/dist.pyi

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,9 @@ class Distribution:
8888
display_options: ClassVar[_OptionsList]
8989
display_option_names: ClassVar[list[str]]
9090
negative_opt: ClassVar[dict[str, str]]
91-
verbose: int
92-
dry_run: int
93-
help: int
91+
verbose: Literal[0, 1]
92+
dry_run: Literal[0, 1]
93+
help: Literal[0, 1]
9494
command_packages: list[str] | None
9595
script_name: str | None
9696
script_args: list[str] | None

0 commit comments

Comments
 (0)