Skip to content

Commit 0322a8a

Browse files
committed
remove type ignore, clean up types.core
1 parent 7e5b618 commit 0322a8a

File tree

1 file changed

+1
-53
lines changed
  • stac_fastapi/core/stac_fastapi/core/types

1 file changed

+1
-53
lines changed

stac_fastapi/core/stac_fastapi/core/types/core.py

Lines changed: 1 addition & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
StacType = Dict[str, Any]
1818

1919

20-
@attr.s # type:ignore
20+
@attr.s
2121
class AsyncBaseTransactionsClient(abc.ABC):
2222
"""Defines a pattern for implementing the STAC transaction extension."""
2323

@@ -161,58 +161,6 @@ def extension_is_enabled(self, extension: str) -> bool:
161161
"""Check if an api extension is enabled."""
162162
return any([type(ext).__name__ == extension for ext in self.extensions])
163163

164-
# async def landing_page(self, **kwargs) -> stac_types.LandingPage:
165-
# """Landing page.
166-
167-
# Called with `GET /`.
168-
169-
# Returns:
170-
# API landing page, serving as an entry point to the API.
171-
# """
172-
# request: Request = kwargs["request"]
173-
# base_url = get_base_url(request)
174-
# landing_page = self._landing_page(
175-
# base_url=base_url,
176-
# conformance_classes=self.conformance_classes(),
177-
# extension_schemas=[],
178-
# )
179-
# collections = await self.all_collections(request=kwargs["request"])
180-
# for collection in collections["collections"]:
181-
# landing_page["links"].append(
182-
# {
183-
# "rel": Relations.child.value,
184-
# "type": MimeTypes.json.value,
185-
# "title": collection.get("title") or collection.get("id"),
186-
# "href": urljoin(base_url, f"collections/{collection['id']}"),
187-
# }
188-
# )
189-
190-
# # Add OpenAPI URL
191-
# landing_page["links"].append(
192-
# {
193-
# "rel": "service-desc",
194-
# "type": "application/vnd.oai.openapi+json;version=3.0",
195-
# "title": "OpenAPI service description",
196-
# "href": urljoin(
197-
# str(request.base_url), request.app.openapi_url.lstrip("/")
198-
# ),
199-
# }
200-
# )
201-
202-
# # Add human readable service-doc
203-
# landing_page["links"].append(
204-
# {
205-
# "rel": "service-doc",
206-
# "type": "text/html",
207-
# "title": "OpenAPI service documentation",
208-
# "href": urljoin(
209-
# str(request.base_url), request.app.docs_url.lstrip("/")
210-
# ),
211-
# }
212-
# )
213-
214-
# return landing_page
215-
216164
async def conformance(self, **kwargs) -> stac_types.Conformance:
217165
"""Conformance classes.
218166

0 commit comments

Comments
 (0)