Skip to content

Commit cbe7a56

Browse files
committed
remove unused
1 parent 3bb80f4 commit cbe7a56

File tree

3 files changed

+3
-11
lines changed

3 files changed

+3
-11
lines changed

stac_fastapi/pgstac/app.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,10 +88,7 @@
8888
extensions=extensions + [collection_search_extension]
8989
if collection_search_extension
9090
else extensions,
91-
client=CoreCrudClient(
92-
post_request_model=post_request_model, # type: ignore
93-
collections_get_request_model=collections_get_request_model, # type: ignore
94-
),
91+
client=CoreCrudClient(post_request_model=post_request_model), # type: ignore
9592
response_class=ORJSONResponse,
9693
items_get_request_model=items_get_request_model,
9794
search_get_request_model=get_request_model,

stac_fastapi/pgstac/core.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
from pygeofilter.backends.cql2_json import to_cql2
1515
from pygeofilter.parsers.cql2_text import parse as parse_cql2_text
1616
from pypgstac.hydration import hydrate
17-
from stac_fastapi.api.models import APIRequest, EmptyRequest, JSONResponse
17+
from stac_fastapi.api.models import JSONResponse
1818
from stac_fastapi.types.core import AsyncBaseCoreClient, Relations
1919
from stac_fastapi.types.errors import InvalidQueryParameter, NotFoundError
2020
from stac_fastapi.types.requests import get_base_url
@@ -39,8 +39,6 @@
3939
class CoreCrudClient(AsyncBaseCoreClient):
4040
"""Client for core endpoints defined by stac."""
4141

42-
collections_get_request_model: APIRequest = attr.ib(default=EmptyRequest)
43-
4442
async def all_collections( # noqa: C901
4543
self,
4644
request: Request,

tests/conftest.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -155,10 +155,7 @@ def api_client(request, database):
155155
api = StacApi(
156156
settings=api_settings,
157157
extensions=extensions + [collection_search_extension],
158-
client=CoreCrudClient(
159-
post_request_model=search_post_request_model,
160-
collections_get_request_model=collections_get_request_model,
161-
),
158+
client=CoreCrudClient(post_request_model=search_post_request_model),
162159
items_get_request_model=items_get_request_model,
163160
search_get_request_model=search_get_request_model,
164161
search_post_request_model=search_post_request_model,

0 commit comments

Comments
 (0)