Merge pull request #461 from jepler/fix-mypy-920

Change how we alias the float and bool types for mypy
This commit is contained in:
Zoltán Vörös 2021-12-17 08:37:41 +01:00 committed by GitHub
commit a99e0b9878
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -48,11 +48,8 @@ enum NUMERICAL_FUNCTION_TYPE {
//| _DType = int
//| """`ulab.numpy.int8`, `ulab.numpy.uint8`, `ulab.numpy.int16`, `ulab.numpy.uint16`, `ulab.numpy.float` or `ulab.numpy.bool`"""
//|
//| _float = float
//| """Type alias of the bulitin float"""
//|
//| _bool = bool
//| """Type alias of the bulitin bool"""
//| from builtins import float as _float
//| from builtins import bool as _bool
//|
//| int8: _DType
//| """Type code for signed integers in the range -128 .. 127 inclusive, like the 'b' typecode of `array.array`"""