Skip to content

Commit 45c12c4

Browse files
committed
tweak docstring, more type annotations
1 parent a43fd5e commit 45c12c4

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

mathics/eval/makeboxes.py

+10-5
Original file line numberDiff line numberDiff line change
@@ -54,25 +54,30 @@ def _boxed_string(string: str, **options):
5454
return StyleBox(String(string), **options)
5555

5656

57-
def eval_fullform_makeboxes(self, expr, evaluation, form=SymbolStandardForm):
57+
def eval_fullform_makeboxes(
58+
self, expr, evaluation: Evaluation, form=SymbolStandardForm
59+
) -> Expression:
5860
"""
5961
This function takes the definitions provided by the evaluation
6062
object, and produces a boxed form for expr.
63+
64+
Basically: MakeBoxes[expr // FullForm]
6165
"""
6266
# This is going to be reimplemented.
6367
expr = Expression(SymbolFullForm, expr)
6468
return Expression(SymbolMakeBoxes, expr, form).evaluate(evaluation)
6569

6670

67-
def eval_makeboxes(self, expr, evaluation, form=SymbolStandardForm):
71+
def eval_makeboxes(
72+
self, expr, evaluation: Evaluation, form=SymbolStandardForm
73+
) -> Expression:
6874
"""
6975
This function takes the definitions provided by the evaluation
70-
object, and produces a boxed form for expr.
76+
object, and produces a boxed fullform for expr.
7177
72-
Basically: MakeBoxes[expr // FullForm]
78+
Basically: MakeBoxes[expr // form]
7379
"""
7480
# This is going to be reimplemented.
75-
expr = Expression(SymbolFullForm, expr)
7681
return Expression(SymbolMakeBoxes, expr, form).evaluate(evaluation)
7782

7883

0 commit comments

Comments
 (0)