From 6c214004317a8bc5c4de78c976d643eefad5eef7 Mon Sep 17 00:00:00 2001 From: mmatera Date: Tue, 19 Mar 2024 10:07:57 -0300 Subject: [PATCH] black --- mathics_django/doc/django_doc.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mathics_django/doc/django_doc.py b/mathics_django/doc/django_doc.py index fb4c6eb65..aac8701c0 100644 --- a/mathics_django/doc/django_doc.py +++ b/mathics_django/doc/django_doc.py @@ -89,7 +89,7 @@ def _set_classes(self): self.part_class = DjangoDocPart self.section_class = DjangoDocSection self.subsection_class = DjangoDocSubsection - + def __str__(self): return "\n\n\n".join(str(part) for part in self.parts) @@ -197,12 +197,13 @@ class DjangoDocChapter(DocChapter, DjangoDocElement): """An object for a Django Documentation Chapter. A Chapter is part of a Part and contains Sections. """ + @property def guide_or_symbol_sections(self): if self.guide_sections: return self.guide_sections return self.sections - + def get_collection(self): """Return a list of chapters in the part of this chapter.""" return self.part.chapters