File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
src/apispec_webframeworks Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -150,7 +150,11 @@ def path_helper(
150
150
view = self ._view_for_rule (rule , app = app )
151
151
view_doc = view .__doc__ or ""
152
152
doc_operations = yaml_utils .load_operations_from_docstring (view_doc )
153
- doc_operations = {k : v for k , v in doc_operations .items () if k .upper () in rule .methods or k .startswith ("x-" )}
153
+ doc_operations = {
154
+ k : v
155
+ for k , v in doc_operations .items ()
156
+ if k .upper () in rule .methods or k .startswith ("x-" )
157
+ }
154
158
operations .update (doc_operations )
155
159
if hasattr (view , "view_class" ) and issubclass (view .view_class , MethodView ): # noqa: E501
156
160
# method attribute is dynamically added, which is supported by mypy
Original file line number Diff line number Diff line change @@ -184,7 +184,7 @@ def get_pet(pet_id):
184
184
def test_multiple_paths (self , app , spec ):
185
185
@app .put ("/user" )
186
186
@app .route ("/user/<user>" )
187
- def user (user = None ):
187
+ def user (user = None ):
188
188
"""A greeting endpoint.
189
189
190
190
---
You can’t perform that action at this time.
0 commit comments