Skip to content

Commit 0e855b0

Browse files
committed
Fix mypy errors
1 parent 07cc56e commit 0e855b0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

openapify/core/builder.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
TypeAnnotation,
3838
)
3939
from openapify.core.openapi import models as openapi
40+
from openapify.core.openapi.models import Parameter
4041
from openapify.plugin import BasePlugin
4142

4243
BASE_PLUGINS = (BodyBinaryPlugin(), GuessMediaTypePlugin(), BaseSchemaPlugin())
@@ -121,7 +122,7 @@ def _process_route(self, route: RouteDef) -> None:
121122
operation_id = None
122123
external_docs = None
123124
security = None
124-
parameters = []
125+
parameters: list[Parameter] = []
125126
route_path_params = {
126127
param.name: param
127128
for param in self._build_path_params(route.path_params or {})
@@ -239,7 +240,7 @@ def _build_query_params(
239240
return result
240241

241242
def _build_path_params(
242-
self, path_params: Dict[str, Union[Type, PathParam]]
243+
self, path_params: Mapping[str, Union[Type, PathParam]]
243244
) -> Sequence[openapi.Parameter]:
244245
result = []
245246
for name, param in path_params.items():

0 commit comments

Comments
 (0)