File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ _CommandT = TypeVar("_CommandT", bound=Command)
3030_Ts = TypeVarTuple ("_Ts" )
3131
3232class Command :
33- dry_run : Literal [0 , 1 ] # Exposed from __getattr_. Same as Distribution.dry_run
33+ dry_run : bool | Literal [0 , 1 ] # Exposed from __getattr_. Same as Distribution.dry_run
3434 distribution : Distribution
3535 # Any to work around variance issues
3636 sub_commands : ClassVar [list [tuple [str , Callable [[Any ], bool ] | None ]]]
Original file line number Diff line number Diff 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 : Literal [0 , 1 ]
92- dry_run : Literal [0 , 1 ]
93- help : Literal [0 , 1 ]
91+ verbose : bool | Literal [0 , 1 ]
92+ dry_run : bool | Literal [0 , 1 ]
93+ help : bool | Literal [0 , 1 ]
9494 command_packages : list [str ] | None
9595 script_name : str | None
9696 script_args : list [str ] | None
You can’t perform that action at this time.
0 commit comments