File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ _CommandT = TypeVar("_CommandT", bound=Command)
30
30
_Ts = TypeVarTuple ("_Ts" )
31
31
32
32
class 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
34
34
distribution : Distribution
35
35
# Any to work around variance issues
36
36
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:
88
88
display_options : ClassVar [_OptionsList ]
89
89
display_option_names : ClassVar [list [str ]]
90
90
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 ]
94
94
command_packages : list [str ] | None
95
95
script_name : str | None
96
96
script_args : list [str ] | None
You can’t perform that action at this time.
0 commit comments