From 886bd5972619bda78ef38e12f91d499382343d4c Mon Sep 17 00:00:00 2001 From: Jan Petykiewicz Date: Tue, 22 Jun 2021 19:00:43 -0700 Subject: [PATCH] should be casting with numpy.array() not .ndarray() --- masque/shapes/text.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/masque/shapes/text.py b/masque/shapes/text.py index d6cb3ac..53dd601 100644 --- a/masque/shapes/text.py +++ b/masque/shapes/text.py @@ -58,7 +58,7 @@ class Text(RotatableImpl, Shape, metaclass=AutoSlots): def mirrored(self, val: Sequence[bool]): if is_scalar(val): 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, string: str,