@@ -210,7 +210,7 @@ def _merge_env_vars(env_dict: Optional[Dict[str, str]],
210
210
default = None ,
211
211
type = int ,
212
212
required = False ,
213
- help = ( 'OS disk size in GBs.' ) ),
213
+ help = 'OS disk size in GBs.' ),
214
214
click .option ('--disk-tier' ,
215
215
default = None ,
216
216
type = click .Choice (resources_utils .DiskTier .supported_tiers (),
@@ -392,7 +392,8 @@ def _install_shell_completion(ctx: click.Context, param: click.Parameter,
392
392
else :
393
393
click .secho (f'Unsupported shell: { value } ' , fg = 'red' )
394
394
ctx .exit ()
395
-
395
+ # Though `ctx.exit()` already NoReturn, we need to make pylint happy.
396
+ assert False , 'Unreachable'
396
397
try :
397
398
subprocess .run (cmd ,
398
399
shell = True ,
@@ -447,6 +448,8 @@ def _uninstall_shell_completion(ctx: click.Context, param: click.Parameter,
447
448
else :
448
449
click .secho (f'Unsupported shell: { value } ' , fg = 'red' )
449
450
ctx .exit ()
451
+ # Though `ctx.exit()` already NoReturn, we need to make pylint happy.
452
+ assert False , 'Unreachable'
450
453
451
454
try :
452
455
subprocess .run (cmd , shell = True , check = True )
@@ -3530,7 +3533,7 @@ def jobs():
3530
3533
default = None ,
3531
3534
type = str ,
3532
3535
hidden = True ,
3533
- help = ( 'Alias for --name, the name of the managed job.' ) )
3536
+ help = 'Alias for --name, the name of the managed job.' )
3534
3537
@click .option ('--job-recovery' ,
3535
3538
default = None ,
3536
3539
type = str ,
@@ -4544,7 +4547,7 @@ def serve_logs(
4544
4547
sky serve logs [SERVICE_NAME] 1
4545
4548
"""
4546
4549
have_replica_id = replica_id is not None
4547
- num_flags = ( controller + load_balancer + have_replica_id )
4550
+ num_flags = controller + load_balancer + have_replica_id
4548
4551
if num_flags > 1 :
4549
4552
raise click .UsageError ('At most one of --controller, --load-balancer, '
4550
4553
'[REPLICA_ID] can be specified.' )
0 commit comments