Skip to content

Commit 8e7d362

Browse files
committed
fixing typos
1 parent bcfeeca commit 8e7d362

File tree

3 files changed

+3
-10
lines changed

3 files changed

+3
-10
lines changed

mathics/builtin/box/layout.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ class PaneBox(BoxExpression):
228228
attributes = A_HOLD_ALL_COMPLETE | A_PROTECTED | A_READ_PROTECTED
229229
summary_text = "box associated to panel"
230230

231-
def apply_display(boxexpr, evaluation, expression):
231+
def apply_display_form(boxexpr, form, evaluation, expression):
232232
"""ToExpression[boxexpr_PaneBox, form_]"""
233233
return Expression(expression.head, boxexpr.elements[0], form).evaluate(
234234
evaluation

mathics/builtin/forms/output.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,7 @@
1616
from math import ceil
1717
from typing import Optional
1818

19-
from mathics.builtin.box.layout import (
20-
GridBox,
21-
InterpretationBox,
22-
PaneBox,
23-
RowBox,
24-
to_boxes,
25-
)
19+
from mathics.builtin.box.layout import GridBox, RowBox, to_boxes
2620
from mathics.builtin.forms.base import FormBaseClass
2721
from mathics.builtin.makeboxes import MakeBoxes, NumberForm_to_String
2822
from mathics.builtin.tensors import get_dimensions
@@ -71,7 +65,6 @@
7165
makeboxes_outputform,
7266
)
7367
from mathics.eval.testing_expressions import expr_min
74-
from mathics.format.outputform import expression_to_outputform_text
7568

7669
MULTI_NEWLINE_RE = re.compile(r"\n{2,}")
7770

mathics/eval/makeboxes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ def format_element(
273273
# As a first step in that direction, let's mimic this behaviour
274274
# just for the case of OutputForm:
275275
if element.has_form("OutputForm", 1):
276-
return makeboxes_output_form(element.elements[0], evaluation, form)
276+
return makeboxes_outputform(element.elements[0], evaluation, form)
277277

278278
expr = do_format(element, evaluation, form)
279279
if expr is None:

0 commit comments

Comments
 (0)