Skip to content

Commit a99e0b9

Browse files
authored
Merge pull request #461 from jepler/fix-mypy-920
Change how we alias the float and bool types for mypy
2 parents 91c01ef + 71b3ba1 commit a99e0b9

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

code/numpy/numerical.c

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,8 @@ enum NUMERICAL_FUNCTION_TYPE {
4848
//| _DType = int
4949
//| """`ulab.numpy.int8`, `ulab.numpy.uint8`, `ulab.numpy.int16`, `ulab.numpy.uint16`, `ulab.numpy.float` or `ulab.numpy.bool`"""
5050
//|
51-
//| _float = float
52-
//| """Type alias of the bulitin float"""
53-
//|
54-
//| _bool = bool
55-
//| """Type alias of the bulitin bool"""
51+
//| from builtins import float as _float
52+
//| from builtins import bool as _bool
5653
//|
5754
//| int8: _DType
5855
//| """Type code for signed integers in the range -128 .. 127 inclusive, like the 'b' typecode of `array.array`"""

0 commit comments

Comments
 (0)