Skip to content

Commit cef656e

Browse files
mmaterarocky
andauthored
another codespell round (#1060)
Co-authored-by: rocky <[email protected]>
1 parent b353e67 commit cef656e

39 files changed

+86
-86
lines changed

mathics/builtin/arithfns/basic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -630,7 +630,7 @@ class Times(BinaryOperator, SympyFunction):
630630
# Remember to up sympy doc link when this is corrected
631631
sympy_name = "Mul"
632632

633-
summary_text = "mutiply"
633+
summary_text = "multiply"
634634

635635
def format_times(self, items, evaluation, op="\u2062"):
636636
"Times[items__]"

mathics/builtin/arithmetic.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -604,7 +604,7 @@ def eval_Element_alternatives(
604604
return None
605605
if len(unknown) == 0:
606606
return SymbolTrue
607-
# If some of the items remain unkown, return a reduced expression
607+
# If some of the items remain unknown, return a reduced expression
608608
return Element(Expression(elems.head, *unknown), domain)
609609

610610

@@ -1013,9 +1013,9 @@ def to_sympy(self, expr, **kwargs) -> Optional[SympyExpression]:
10131013
# test should be broader.
10141014
if isinstance(f_sympy, sympy.core.basic.Basic):
10151015
# sympy.summation() won't be able to handle Mathics functions in
1016-
# in its first argument, the function paramameter.
1016+
# in its first argument, the function parameter.
10171017
# For example in Sum[Identity[x], {x, 3}], sympy.summation can't
1018-
# evaluate Indentity[x].
1018+
# evaluate Identity[x].
10191019
# In general we want to avoid using Sympy if we can.
10201020
# If we have integer bounds, we'll use Mathics's iterator Sum
10211021
# (which is Plus)

mathics/builtin/assignments/assign_binaryop.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class AddTo(BinaryOperator):
4545
rules = {
4646
"x_ += dx_": "x = x + dx",
4747
}
48-
summary_text = "add a value and assignes that returning the new value"
48+
summary_text = "add a value and assigns that returning the new value"
4949

5050

5151
class Decrement(PostfixOperator):

mathics/builtin/assignments/assignment.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class _SetOperator:
3434
"""
3535

3636
# FIXME:
37-
# Assigment is determined by the LHS.
37+
# Assignment is determined by the LHS.
3838
# Are there a larger patterns or natural groupings that we are missing?
3939
# For example, it might be that it
4040
# we can key off of some attributes or other properties of the

mathics/builtin/assignments/types.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# -*- coding: utf-8 -*-
22
# This module follows Mathematica 5
3-
# conventions. In current Mathematica a number of these functiions
3+
# conventions. In current Mathematica a number of these functions
44
# don't exist. Some of the functions in Mathematica 5 appear now
55
# under Information.
66

77
# FIXME: put this inside a Pymathics module.
8-
# We alos should have compatibility modes for for earlier Mathemathica versions.
8+
# We should also have compatibility modes for for earlier Mathemathica versions.
99
"""
1010
Types of Values
1111
"""

mathics/builtin/box/graphics.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -706,7 +706,7 @@ def boxes_to_svg(self, elements=None, **options) -> str:
706706

707707
def create_axes(self, elements, graphics_options, xmin, xmax, ymin, ymax) -> tuple:
708708
# Note that Asymptote has special commands for drawing axes, like "xaxis"
709-
# "yaxis", "xtick" "labelx", "labely". Entend our language
709+
# "yaxis", "xtick" "labelx", "labely". Extend our language
710710
# here and use those in render-like routines.
711711

712712
use_log_for_y_axis = graphics_options.get("System`LogPlot", False)
@@ -1076,7 +1076,7 @@ class PointBox(_Polyline):
10761076
"""
10771077
<dl>
10781078
<dt>'PointBox']
1079-
<dd>is the symbol used in boxing 'Point' expessions.
1079+
<dd>is the symbol used in boxing 'Point' expressions.
10801080
</dl>
10811081
10821082
Options include the edge color and the point radius for each of the points.

mathics/builtin/box/graphics3d.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class Graphics3DBox(GraphicsBox):
4343
</dl>
4444
"""
4545

46-
summary_text = "symbol used boxing Graphics3D expresssions"
46+
summary_text = "symbol used boxing Graphics3D expressions"
4747

4848
def _prepare_elements(self, elements, options, max_width=None):
4949
if not elements:
@@ -240,7 +240,7 @@ def _prepare_elements(self, elements, options, max_width=None):
240240
elements = Graphics3DElements(elements[0], evaluation)
241241
# If one of the primitives or directives fails to be
242242
# converted into a box expression, then the background color
243-
# is set to pink, overwritting the options.
243+
# is set to pink, overwriting the options.
244244
if hasattr(elements, "background_color"):
245245
self.background_color = elements.background_color
246246

@@ -556,7 +556,7 @@ def init(self, graphics, style, item):
556556

557557
def extent(self):
558558
result = []
559-
# FIXME: the extent is roughly wrong. It is using the extent of a shpere at each coordinate.
559+
# FIXME: the extent is roughly wrong. It is using the extent of a sphere at each coordinate.
560560
# Anyway, it is very difficult to calculate the extent of a cone.
561561
result.extend(
562562
[

mathics/builtin/box/image.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class ImageBox(BoxExpression):
2828
2929
"""
3030

31-
summary_text = "symbol used boxing Image expresssions"
31+
summary_text = "symbol used boxing Image expressions"
3232

3333
def boxes_to_b64text(
3434
self, elements: Tuple[BaseElement] = None, **options
@@ -109,7 +109,7 @@ def boxes_to_tex(self, elements=None, **options) -> str:
109109
head = rf"\includegraphics[width={width_str}cm,height={height_str}cm]"
110110

111111
# This produces a random name, where the png file is going to be stored.
112-
# LaTeX does not have a native way to store an figure embeded in
112+
# LaTeX does not have a native way to store an figure embedded in
113113
# the source.
114114
fp = tempfile.NamedTemporaryFile(delete=True, suffix=".png")
115115
path = fp.name

mathics/builtin/box/layout.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def to_boxes(x, evaluation: Evaluation, options={}) -> BoxElementMixin:
3838
"""
3939
This function takes the expression ``x``
4040
and tries to reduce it to a ``BoxElementMixin``
41-
expression unsing an evaluation object.
41+
expression using an evaluation object.
4242
"""
4343
if isinstance(x, BoxElementMixin):
4444
return x
@@ -303,7 +303,7 @@ class ShowStringCharacters(Builtin):
303303
<i>This option can sometimes be output, but currently it is not interpreted.</i>
304304
"""
305305

306-
summary_text = "cell option directing wither show show quotes around strings"
306+
summary_text = "cell option directing whether show quotes around strings"
307307

308308

309309
class SqrtBox(BoxExpression):
@@ -380,7 +380,7 @@ def get_string_value(self):
380380
return None
381381

382382
def init(self, boxes, style=None, **options):
383-
# This implementation superseeds Expresion.process_style_box
383+
# This implementation supersedes Expression.process_style_box
384384
if isinstance(boxes, StyleBox):
385385
options.update(boxes.box_options)
386386
boxes = boxes.boxes

mathics/builtin/colors/color_operations.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,15 +79,15 @@ class Blend(Builtin):
7979

8080
def do_blend(self, colors, values):
8181
type = None
82-
homogenous = True
82+
homogeneous = True
8383
for color in colors:
8484
if type is None:
8585
type = color.__class__
8686
else:
8787
if color.__class__ != type:
88-
homogenous = False
88+
homogeneous = False
8989
break
90-
if not homogenous:
90+
if not homogeneous:
9191
colors = [RGBColor(components=color.to_rgba()) for color in colors]
9292
type = RGBColor
9393
total = sum(values)

0 commit comments

Comments
 (0)