Skip to content

Commit 2e91698

Browse files
Apply black formatting
1 parent f631e16 commit 2e91698

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

openapidocs/mk/v3/__init__.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,10 @@ def _handle_obj_ref(self, obj, source_path):
305305
# Strip the leading '/' then split on '/'.
306306
keys = fragment.lstrip("/").split("/")
307307
for key in keys:
308-
if not isinstance(sub_fragment, dict) or key not in sub_fragment:
308+
if (
309+
not isinstance(sub_fragment, dict)
310+
or key not in sub_fragment
311+
):
309312
raise OpenAPIDocumentationHandlerError(
310313
f"Cannot resolve fragment '{fragment}' in {referred_file}: "
311314
f"key '{key}' not found."

0 commit comments

Comments
 (0)