|
22 | 22 | class BaseTransactionsClient(abc.ABC):
|
23 | 23 | """Defines a pattern for implementing the STAC transaction extension."""
|
24 | 24 |
|
25 |
| - |
26 | 25 | @abc.abstractmethod
|
27 | 26 | def create_item(self, item: stac_types.Item, **kwargs) -> stac_types.Item:
|
28 | 27 | """Create a new item.
|
@@ -233,8 +232,9 @@ class LandingPageMixin:
|
233 | 232 | title: str = attr.ib(default="stac-fastapi")
|
234 | 233 | description: str = attr.ib(default="stac-fastapi")
|
235 | 234 |
|
236 |
| - |
237 |
| - def _landing_page(self, base_url: str, conformance_classes: List[str]) -> stac_types.LandingPage: |
| 235 | + def _landing_page( |
| 236 | + self, base_url: str, conformance_classes: List[str] |
| 237 | + ) -> stac_types.LandingPage: |
238 | 238 | landing_page = stac_types.LandingPage(
|
239 | 239 | type="Catalog",
|
240 | 240 | id=self.landing_page_id,
|
@@ -326,7 +326,9 @@ def landing_page(self, **kwargs) -> stac_types.LandingPage:
|
326 | 326 | API landing page, serving as an entry point to the API.
|
327 | 327 | """
|
328 | 328 | base_url = str(kwargs["request"].base_url)
|
329 |
| - landing_page = self._landing_page(base_url=base_url, conformance_classes=self.conformance_classes()) |
| 329 | + landing_page = self._landing_page( |
| 330 | + base_url=base_url, conformance_classes=self.conformance_classes() |
| 331 | + ) |
330 | 332 | collections = self.all_collections(request=kwargs["request"])
|
331 | 333 | for collection in collections:
|
332 | 334 | landing_page["links"].append(
|
@@ -496,7 +498,9 @@ async def landing_page(self, **kwargs) -> stac_types.LandingPage:
|
496 | 498 | API landing page, serving as an entry point to the API.
|
497 | 499 | """
|
498 | 500 | base_url = str(kwargs["request"].base_url)
|
499 |
| - landing_page = self._landing_page(base_url=base_url, conformance_classes=self.conformance_classes()) |
| 501 | + landing_page = self._landing_page( |
| 502 | + base_url=base_url, conformance_classes=self.conformance_classes() |
| 503 | + ) |
500 | 504 | collections = await self.all_collections(request=kwargs["request"])
|
501 | 505 | for collection in collections:
|
502 | 506 | landing_page["links"].append(
|
|
0 commit comments