Skip to content

Commit adc0fbe

Browse files
committed
fix types
1 parent 1939940 commit adc0fbe

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

ogc_api_processes_fastapi/routers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# limitations under the License
1616

1717
import urllib.parse
18-
from typing import Any, List
18+
from typing import Any, Dict, List
1919

2020
import fastapi
2121

@@ -326,7 +326,7 @@ def create_get_job_results_endpoint(
326326
},
327327
operation_id="getJobResults",
328328
)
329-
def get_job_results(job_id: str) -> models.Results:
329+
def get_job_results(job_id: str) -> Dict[str, Any]:
330330
"""Show results of a job."""
331331
response = client.get_job_results(job_id=job_id)
332332
return response

tests/conftest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ def post_process_execute(
6363
execution_content: models.Execute,
6464
request: fastapi.Request,
6565
response: fastapi.Response,
66-
) -> Dict[str, Any]:
67-
status_info = dict(
66+
) -> models.StatusInfo:
67+
status_info = models.StatusInfo(
6868
jobID=1, status=models.StatusCode.accepted, type=models.JobType.process
6969
)
7070
return status_info

0 commit comments

Comments
 (0)