Skip to content

Commit 8170935

Browse files
committed
black
1 parent 2142048 commit 8170935

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

mathics_django/doc/django_doc.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -194,9 +194,8 @@ def search_sections(section, result):
194194
return sorted_results
195195

196196

197-
198197
class DjangoDocumentationEntry(DocumentationEntry):
199-
def __init__(self, doc_str:str, title:str, section:Optional["DjangoDocSection"]):
198+
def __init__(self, doc_str: str, title: str, section: Optional["DjangoDocSection"]):
200199
self.docTest_collection_class = DjangoDocTests
201200
self.docTest_class = DjangoDocTest
202201
self.docText_class = DjangoDocText

mathics_django/docpipeline.py

-2
Original file line numberDiff line numberDiff line change
@@ -598,7 +598,6 @@ def main():
598598
if args.logfilename:
599599
logfile = open(args.logfilename, "wt")
600600

601-
602601
# LoadModule Mathics3 modules
603602
if args.pymathics:
604603
for module_name in args.pymathics.split(","):
@@ -617,7 +616,6 @@ def main():
617616
global documentation
618617
documentation = MathicsDjangoDocumentation()
619618

620-
621619
if args.sections:
622620
sections = set(args.sections.split(","))
623621

mathics_django/web/controllers/doc.py

+7-3
Original file line numberDiff line numberDiff line change
@@ -25,19 +25,23 @@
2525
seen_pymathics_modules = copy(pymathics_modules)
2626

2727

28-
2928
def check_for_pymathics_load():
3029
global seen_pymathics_modules
3130
if seen_pymathics_modules != pymathics_modules:
3231
print("XXX refresh pymathics doc", pymathics_modules)
3332
new_modules = pymathics_modules - seen_pymathics_modules
3433
for new_module in new_modules:
3534
title, _ = get_module_doc(new_module)
36-
mathics3_module_part = documentation.parts_by_slug.get("mathics3-modules", None)
35+
mathics3_module_part = documentation.parts_by_slug.get(
36+
"mathics3-modules", None
37+
)
3738
# If this is the first loaded module, we need to create the Part
3839
if mathics3_module_part is None:
3940
mathics3_module_part = self.doc_part(
40-
"Mathics3 Modules", pymathics_modules, pymathics_builtins_by_module, True
41+
"Mathics3 Modules",
42+
pymathics_modules,
43+
pymathics_builtins_by_module,
44+
True,
4145
)
4246
seen_pymathics_modules = copy(pymathics_modules)
4347
return

0 commit comments

Comments
 (0)