Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
whipps committed Dec 5, 2024
1 parent 28b5e06 commit c0c52c4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
9 changes: 4 additions & 5 deletions planet/cli/subscriptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,15 +79,14 @@ def subscriptions(ctx, base_url):
hosting).""")
@click.option(
'--name-contains',
help=
"only return subscriptions with a name that contains the provided string.")
help="""only return subscriptions with a name that contains the provided
string.""")
@click.option('--name', help="filter by name")
@click.option(
'--source-type',
multiple=True,
help=
"""Filter subscriptions by one or more source types. See documentation for
all available types. Default is all.""")
help="""Filter subscriptions by one or more source types. See documentation
for all available types. Default is all.""")
@click.option(
'--start-time',
help="""Filter subscriptions by start time or interval. See documentation
Expand Down
4 changes: 2 additions & 2 deletions planet/clients/subscriptions.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""Planet Subscriptions API Python client."""

import logging
from typing import AsyncIterator, Optional, Sequence
from typing import AsyncIterator, Optional, Sequence, Dict, Union

from typing_extensions import Literal

Expand Down Expand Up @@ -129,7 +129,7 @@ class _SubscriptionsPager(Paged):
"""Navigates pages of messages about subscriptions."""
ITEMS_KEY = 'subscriptions'

params = {}
params: Dict[str, Union[str, Sequence[str]], bool] = {}
if created is not None:
params['created'] = created
if end_time is not None:
Expand Down

0 comments on commit c0c52c4

Please sign in to comment.