Skip to content

Commit 5d8d513

Browse files
author
whipps
committed
Formatting
1 parent 28b5e06 commit 5d8d513

File tree

3 files changed

+8
-9
lines changed

3 files changed

+8
-9
lines changed

planet/cli/subscriptions.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,15 +79,14 @@ def subscriptions(ctx, base_url):
7979
hosting).""")
8080
@click.option(
8181
'--name-contains',
82-
help=
83-
"only return subscriptions with a name that contains the provided string.")
82+
help="""only return subscriptions with a name that contains the provided
83+
string.""")
8484
@click.option('--name', help="filter by name")
8585
@click.option(
8686
'--source-type',
8787
multiple=True,
88-
help=
89-
"""Filter subscriptions by one or more source types. See documentation for
90-
all available types. Default is all.""")
88+
help="""Filter subscriptions by one or more source types. See documentation
89+
for all available types. Default is all.""")
9190
@click.option(
9291
'--start-time',
9392
help="""Filter subscriptions by start time or interval. See documentation

planet/clients/orders.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
import asyncio
1717
import logging
1818
import time
19-
from typing import AsyncIterator, Callable, List, Optional, Sequence
19+
from typing import AsyncIterator, Callable, List, Optional, Sequence, Union, Dict
2020
import uuid
2121
import json
2222
import hashlib
@@ -523,7 +523,7 @@ async def list_orders(self,
523523
planet.exceptions.ClientError: If state is not valid.
524524
"""
525525
url = self._orders_url()
526-
params = {}
526+
params: Dict[str, Union[str, Sequence[str], bool]] = {}
527527
if source_type is not None:
528528
params["source_type"] = [val for val in source_type]
529529
else:

planet/clients/subscriptions.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""Planet Subscriptions API Python client."""
22

33
import logging
4-
from typing import AsyncIterator, Optional, Sequence
4+
from typing import AsyncIterator, Optional, Sequence, Dict, Union
55

66
from typing_extensions import Literal
77

@@ -129,7 +129,7 @@ class _SubscriptionsPager(Paged):
129129
"""Navigates pages of messages about subscriptions."""
130130
ITEMS_KEY = 'subscriptions'
131131

132-
params = {}
132+
params: Dict[str, Union[str, Sequence[str], bool]] = {}
133133
if created is not None:
134134
params['created'] = created
135135
if end_time is not None:

0 commit comments

Comments
 (0)