Skip to content

Commit a3d23a4

Browse files
committed
Use nLevels for fitsNumLevels
1 parent eba1148 commit a3d23a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Deeploy/AbstractDataTypes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ def checkValue(cls, value: Union[int, Iterable[int], np.ndarray], ctxt: Optional
221221

222222
@classmethod
223223
def fitsNumLevels(cls, nLevels: int) -> bool:
224-
return nLevels <= (cls.typeMax - cls.typeMin + 1)
224+
return nLevels <= cls.nLevels
225225

226226

227227
class FloatImmediate(Immediate[Union[float, Iterable[float]], _ImmediateType]):

0 commit comments

Comments
 (0)