should be casting with numpy.array() not .ndarray()
This commit is contained in:
parent
4796676a4e
commit
886bd59726
1 changed files with 1 additions and 1 deletions
|
|
@ -58,7 +58,7 @@ class Text(RotatableImpl, Shape, metaclass=AutoSlots):
|
||||||
def mirrored(self, val: Sequence[bool]):
|
def mirrored(self, val: Sequence[bool]):
|
||||||
if is_scalar(val):
|
if is_scalar(val):
|
||||||
raise PatternError('Mirrored must be a 2-element list of booleans')
|
raise PatternError('Mirrored must be a 2-element list of booleans')
|
||||||
self._mirrored = numpy.ndarray(val, dtype=bool, copy=True)
|
self._mirrored = numpy.array(val, dtype=bool, copy=True)
|
||||||
|
|
||||||
def __init__(self,
|
def __init__(self,
|
||||||
string: str,
|
string: str,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue