@@ -32,7 +32,7 @@ class EndpointCollection:
3232 parse_errors : List [ParseError ] = field (default_factory = list )
3333
3434 @staticmethod
35- def from_dict (d : Dict [str , Dict [str , Dict [str , Any ]]], / ) -> Dict [str , EndpointCollection ]:
35+ def from_dict (d : Dict [str , Dict [str , Dict [str , Any ]]]) -> Dict [str , EndpointCollection ]:
3636 """ Parse the openapi paths data to get EndpointCollections by tag """
3737 endpoints_by_tag : Dict [str , EndpointCollection ] = {}
3838
@@ -72,7 +72,7 @@ class Endpoint:
7272 multipart_body_reference : Optional [Reference ] = None
7373
7474 @staticmethod
75- def parse_request_form_body (body : Dict [str , Any ], / ) -> Optional [Reference ]:
75+ def parse_request_form_body (body : Dict [str , Any ]) -> Optional [Reference ]:
7676 """ Return form_body_reference """
7777 body_content = body ["content" ]
7878 form_body = body_content .get ("application/x-www-form-urlencoded" )
@@ -81,7 +81,7 @@ def parse_request_form_body(body: Dict[str, Any], /) -> Optional[Reference]:
8181 return None
8282
8383 @staticmethod
84- def parse_multipart_body (body : Dict [str , Any ], / ) -> Optional [Reference ]:
84+ def parse_multipart_body (body : Dict [str , Any ]) -> Optional [Reference ]:
8585 """ Return form_body_reference """
8686 body_content = body ["content" ]
8787 body = body_content .get ("multipart/form-data" )
@@ -90,7 +90,7 @@ def parse_multipart_body(body: Dict[str, Any], /) -> Optional[Reference]:
9090 return None
9191
9292 @staticmethod
93- def parse_request_json_body (body : Dict [str , Any ], / ) -> Optional [Property ]:
93+ def parse_request_json_body (body : Dict [str , Any ]) -> Optional [Property ]:
9494 """ Return json_body """
9595 body_content = body ["content" ]
9696 json_body = body_content .get ("application/json" )
@@ -169,7 +169,7 @@ class Schema:
169169 relative_imports : Set [str ]
170170
171171 @staticmethod
172- def from_dict (d : Dict [str , Any ], / , name : str ) -> Schema :
172+ def from_dict (d : Dict [str , Any ], name : str ) -> Schema :
173173 """ A single Schema from its dict representation
174174 :param d: Dict representation of the schema
175175 :param name: Name by which the schema is referenced, such as a model name. Used to infer the type name if a `title` property is not available.
@@ -200,7 +200,7 @@ def from_dict(d: Dict[str, Any], /, name: str) -> Schema:
200200 return schema
201201
202202 @staticmethod
203- def dict (d : Dict [str , Dict [str , Any ]], / ) -> Dict [str , Schema ]:
203+ def dict (d : Dict [str , Dict [str , Any ]]) -> Dict [str , Schema ]:
204204 """ Get a list of Schemas from an OpenAPI dict """
205205 result = {}
206206 for name , data in d .items ():
@@ -221,7 +221,7 @@ class OpenAPI:
221221 enums : Dict [str , EnumProperty ]
222222
223223 @staticmethod
224- def from_dict (d : Dict [str , Dict [str , Any ]], / ) -> OpenAPI :
224+ def from_dict (d : Dict [str , Dict [str , Any ]]) -> OpenAPI :
225225 """ Create an OpenAPI from dict """
226226 schemas = Schema .dict (d ["components" ]["schemas" ])
227227 endpoint_collections_by_tag = EndpointCollection .from_dict (d ["paths" ])
0 commit comments