type annotation updates
This commit is contained in:
parent
3d50ff0070
commit
9d5b1ef5e6
15 changed files with 28 additions and 28 deletions
|
|
@ -54,7 +54,7 @@ class RotatableImpl(Rotatable, metaclass=ABCMeta):
|
|||
return self._rotation
|
||||
|
||||
@rotation.setter
|
||||
def rotation(self, val: float):
|
||||
def rotation(self, val: float) -> None:
|
||||
if not numpy.size(val) == 1:
|
||||
raise MasqueError('Rotation must be a scalar')
|
||||
self._rotation = val % (2 * pi)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue