Skip to content

Commit 292ffe2

Browse files
committed
start making importexport black aware
1 parent efab417 commit 292ffe2

File tree

4 files changed

+8
-6
lines changed

4 files changed

+8
-6
lines changed

mathics/builtin/files_io/importexport.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1298,8 +1298,6 @@ class Import(Builtin):
12981298
= ...
12991299
#> Import["ExampleData/Middlemarch.txt"];
13001300
: An invalid unicode sequence was encountered and ignored.
1301-
#> StringTake[Import["ExampleData/Middlemarch.txt", CharacterEncoding -> "ISO8859-1"], {21, 69}]
1302-
= Le sentiment de la fausseté des plaisirs présents
13031301
13041302
## JSON
13051303
>> Import["ExampleData/colors.json"]

mathics/builtin/optimization.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,8 @@
1010

1111
from mathics.version import __version__ # noqa used in loading to check consistency.
1212
from mathics.builtin.base import Builtin
13-
from mathics.core.expression import Expression, Integer, Number, from_python
14-
from mathics.core.convert import sympy_symbol_prefix, SympyExpression, from_sympy
15-
from mathics.core.rules import Pattern
13+
from mathics.core.expression import Expression, from_python
14+
from mathics.core.convert import from_sympy
1615

1716
import sympy
1817

mathics/builtin/tensors.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
In mathematics, a tensor is an algebraic object that describes a (multilinear) relationship between sets of algebraic objects related to a vector space. Objects that tensors may map between include vectors and scalars, and even other tensors.
77
88
There are many types of tensors, including scalars and vectors (which are the simplest tensors), dual vectors, multilinear maps between vector spaces, and even some operations such as the dot product. Tensors are defined independent of any basis, although they are often referred to by their components in a basis related to a particular coordinate system.
9+
10+
Mathics represents tensors of vectors and matrices as lists; tensors of any rank can be handled.
911
"""
1012

1113
from mathics.version import __version__ # noqa used in loading to check consistency.

mathics/docpipeline.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,10 @@ def fail(why):
8888
f"""{sep}Test failed: {section} in {part} / {chapter}
8989
{part}
9090
n{why}
91-
""".encode("utf-8"))
91+
""".encode(
92+
"utf-8"
93+
)
94+
)
9295
return False
9396

9497
if not quiet:

0 commit comments

Comments
 (0)