Skip to content

Commit 81d6d8f

Browse files
committed
lint and fix types
1 parent 41c6ab4 commit 81d6d8f

File tree

2 files changed

+14
-9
lines changed

2 files changed

+14
-9
lines changed

planet/cli/orders.py

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -361,11 +361,12 @@ async def create(ctx, request, pretty, **kwargs):
361361
help='Bundle type for the item.',
362362
type=str,
363363
callback=check_bundle)
364-
@click.option('--fallback-bundle',
365-
required=False,
366-
help='Fallback bundle type(s) for the item if bundle is not available.',
367-
type=str,
368-
callback=check_bundle)
364+
@click.option(
365+
'--fallback-bundle',
366+
required=False,
367+
help='Fallback bundle type(s) for the item if bundle is not available.',
368+
type=str,
369+
callback=check_bundle)
369370
@click.option('--name',
370371
required=True,
371372
help='Order name. Does not need to be unique.',
@@ -451,7 +452,10 @@ async def request(ctx,
451452
IDs is one or more comma-separated item IDs.
452453
"""
453454
try:
454-
product = planet.order_request.product(ids, bundle, item_type, fallback_bundle)
455+
product = planet.order_request.product(ids,
456+
bundle,
457+
item_type,
458+
fallback_bundle)
455459
except planet.specs.SpecificationException as e:
456460
raise click.BadParameter(e)
457461

planet/order_request.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,12 +128,13 @@ def product(item_ids: List[str],
128128
validated_product_bundle = specs.validate_bundle(item_type, product_bundle)
129129

130130
if fallback_bundle is not None:
131-
bundles = fallback_bundle.split(',') if isinstance(fallback_bundle, str) else fallback_bundle
131+
bundles = fallback_bundle.split(',') if isinstance(
132+
fallback_bundle, str) else fallback_bundle
132133
validated_bundles = []
133134
for bundle in bundles:
134135
validated_bundles.append(specs.validate_bundle(item_type, bundle))
135-
validated_bundles = ','.join(validated_bundles)
136-
validated_product_bundle = ','.join([validated_product_bundle, validated_bundles])
136+
validated_product_bundle = ','.join(
137+
[validated_product_bundle, ','.join(validated_bundles)])
137138

138139
product_dict = {
139140
'item_ids': item_ids,

0 commit comments

Comments
 (0)