File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 3737 TypeAnnotation ,
3838)
3939from openapify .core .openapi import models as openapi
40+ from openapify .core .openapi .models import Parameter
4041from openapify .plugin import BasePlugin
4142
4243BASE_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 ():
You can’t perform that action at this time.
0 commit comments