Skip to content

Commit

Permalink
pre-commit formattings
Browse files Browse the repository at this point in the history
  • Loading branch information
commonism committed Sep 22, 2023
1 parent 94a6082 commit 3eabbd1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ tests/my_*.py
docs/build/
.pdm-python
*.egg-info
*.ipynb
*.ipynb
4 changes: 2 additions & 2 deletions aiopenapi3/extra.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ def parsed(self, ctx: "Document.Context") -> "Document.Context":
# Update references in the document
while self._update_references(ctx.document, document):
pass

# Rebuild Tags
tag_names = list(
set(
Expand All @@ -161,5 +161,5 @@ def parsed(self, ctx: "Document.Context") -> "Document.Context":
document["tags"] = [tag for tag in ctx.document.get("tags", []) if tag["name"] in tag_names]

ctx.document = document

return ctx
2 changes: 1 addition & 1 deletion aiopenapi3/openapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,7 @@ def is_schema(v: Tuple[str, "SchemaType"]) -> bool:
for name, schema in filter(is_schema, byid.items()):
byname[schema._get_identity(name=name)] = schema

# PathItems
# PathItems
for path, obj in (self.paths or dict()).items():
for m in obj.model_fields_set & HTTP_METHODS:
op = getattr(obj, m)
Expand Down

0 comments on commit 3eabbd1

Please sign in to comment.