Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
moradology committed Aug 12, 2021
1 parent 95f905f commit 1c86dd5
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions stac_fastapi/types/stac_fastapi/types/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
class BaseTransactionsClient(abc.ABC):
"""Defines a pattern for implementing the STAC transaction extension."""


@abc.abstractmethod
def create_item(self, item: stac_types.Item, **kwargs) -> stac_types.Item:
"""Create a new item.
Expand Down Expand Up @@ -233,8 +232,9 @@ class LandingPageMixin:
title: str = attr.ib(default="stac-fastapi")
description: str = attr.ib(default="stac-fastapi")


def _landing_page(self, base_url: str, conformance_classes: List[str]) -> stac_types.LandingPage:
def _landing_page(
self, base_url: str, conformance_classes: List[str]
) -> stac_types.LandingPage:
landing_page = stac_types.LandingPage(
type="Catalog",
id=self.landing_page_id,
Expand Down Expand Up @@ -326,7 +326,9 @@ def landing_page(self, **kwargs) -> stac_types.LandingPage:
API landing page, serving as an entry point to the API.
"""
base_url = str(kwargs["request"].base_url)
landing_page = self._landing_page(base_url=base_url, conformance_classes=self.conformance_classes())
landing_page = self._landing_page(
base_url=base_url, conformance_classes=self.conformance_classes()
)
collections = self.all_collections(request=kwargs["request"])
for collection in collections:
landing_page["links"].append(
Expand Down Expand Up @@ -496,7 +498,9 @@ async def landing_page(self, **kwargs) -> stac_types.LandingPage:
API landing page, serving as an entry point to the API.
"""
base_url = str(kwargs["request"].base_url)
landing_page = self._landing_page(base_url=base_url, conformance_classes=self.conformance_classes())
landing_page = self._landing_page(
base_url=base_url, conformance_classes=self.conformance_classes()
)
collections = await self.all_collections(request=kwargs["request"])
for collection in collections:
landing_page["links"].append(
Expand Down

0 comments on commit 1c86dd5

Please sign in to comment.