Skip to content

Commit 92bcde6

Browse files
committed
fix types
1 parent dffc2d5 commit 92bcde6

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

ogc_api_processes_fastapi/models.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
import datetime
1818
import enum
19-
from typing import Any, Dict, ForwardRef, List, Optional, Union, cast
19+
from typing import Any, Dict, ForwardRef, List, Optional, Union
2020

2121
import pydantic
2222
import typing_extensions
@@ -144,13 +144,13 @@ class SchemaItem(pydantic.BaseModel): # type: ignore
144144
minimum: Optional[float] = None
145145
exclusiveMinimum: Optional[bool] = False
146146
maxLength: Optional[PositiveInt] = None
147-
minLength: Optional[PositiveInt] = cast(PositiveInt, 0)
147+
minLength: Optional[PositiveInt] = 0
148148
pattern: Optional[str] = None
149149
maxItems: Optional[PositiveInt] = None
150-
minItems: Optional[PositiveInt] = cast(PositiveInt, 0)
150+
minItems: Optional[PositiveInt] = 0
151151
uniqueItems: Optional[bool] = False
152152
maxProperties: Optional[PositiveInt] = None
153-
minProperties: Optional[PositiveInt] = cast(PositiveInt, 0)
153+
minProperties: Optional[PositiveInt] = 0
154154
required: Optional[List[str]] = pydantic.Field(default=None, min_length=1)
155155
enum: Optional[List[Any]] = pydantic.Field(default=None, min_length=1)
156156
type: Optional[ObjectType] = None

tests/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ def get_job(self, job_id: str = fastapi.Path(...)) -> StatusInfo:
198198
)
199199
return status_info
200200

201-
def get_job_results( # type: ignore
201+
def get_job_results(
202202
self,
203203
job_id: str = fastapi.Path(...),
204204
) -> models.Results:

0 commit comments

Comments
 (0)