wip again
This commit is contained in:
parent
db9a6269a1
commit
7ca017d993
26 changed files with 273 additions and 336 deletions
|
|
@ -33,6 +33,7 @@ class Doseable(metaclass=ABCMeta):
|
|||
'''
|
||||
---- Methods
|
||||
'''
|
||||
@abstractmethod
|
||||
def set_dose(self: T, dose: float) -> T:
|
||||
"""
|
||||
Set the dose
|
||||
|
|
@ -63,7 +64,7 @@ class DoseableImpl(Doseable, metaclass=ABCMeta):
|
|||
return self._dose
|
||||
|
||||
@dose.setter
|
||||
def dose(self, val: float):
|
||||
def dose(self, val: float) -> None:
|
||||
if not val >= 0:
|
||||
raise MasqueError('Dose must be non-negative')
|
||||
self._dose = val
|
||||
|
|
|
|||
|
|
@ -32,6 +32,7 @@ class Layerable(metaclass=ABCMeta):
|
|||
'''
|
||||
---- Methods
|
||||
'''
|
||||
@abstractmethod
|
||||
def set_layer(self: T, layer: layer_t) -> T:
|
||||
"""
|
||||
Set the layer
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
from typing import TypeVar, Dict, Tuple, Any
|
||||
from abc import ABCMeta, abstractmethod
|
||||
|
||||
from ..error import PatternLockedError
|
||||
#from ..error import PatternLockedError
|
||||
|
||||
|
||||
T = TypeVar('T', bound='Lockable')
|
||||
|
|
|
|||
Loading…
Reference in a new issue