Skip to content

Commit 657ed80

Browse files
committed
style: Format
1 parent 7dc82fc commit 657ed80

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

src/pytkdocs/loader.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,9 @@ def get_class_documentation(self, node: ObjectNode, select_members=None) -> Clas
472472
class_ = node.obj
473473
docstring = inspect.cleandoc(class_.__doc__ or "")
474474
bases = [self._class_path(b) for b in class_.__bases__]
475-
root_object = Class(name=node.name, path=node.dotted_path, file_path=node.file_path, docstring=docstring, bases=bases)
475+
root_object = Class(
476+
name=node.name, path=node.dotted_path, file_path=node.file_path, docstring=docstring, bases=bases
477+
)
476478

477479
# Even if we don't select members, we want to correctly parse the docstring
478480
attributes_data: Dict[str, Dict[str, Any]] = {}

src/pytkdocs/serializer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,5 +240,5 @@ def serialize_object(obj: Object) -> dict:
240240
if hasattr(obj, "signature"): # noqa: WPS421 (hasattr)
241241
serialized["signature"] = serialize_signature(obj.signature) # type: ignore
242242
if hasattr(obj, "bases"): # noqa: WPS421 (hasattr)
243-
serialized["bases"] = obj.bases # type: ignore
243+
serialized["bases"] = obj.bases # type: ignore
244244
return serialized

0 commit comments

Comments
 (0)