- Added the column wildcard in structure expressions to allow expressing 'a structure with at least ...'.
- Fixed the
help
text for functions that usenptyping
types as hints. - Fixed the distribution of
dataframe.pyi
that was missing. - Fixed the sdist to include tests and dependencies.
- Fixed compatibility with
mypy==0.991
.
- Added hint for pandas DataFrame.
- Fixed bug for checking against a Structure where a different number of fields did not fail the check.
- Changed
nptyping.Int
pointing to the more genericnumpy.integer
rather thannumpy.int32
. - Added support for Python 3.11 with the exception of
pandas.DataFrame
.
- Fixed mypy error of inheriting final dtype as of numpy==1.23.1.
- Allowed for quotes in shape expressions to appease PyCharm.
- Added support for subarrays with shape expressions inside structure expressions.
- Added support for wildcards in structure expressions.
- Added support for expressing "at least N dimensions".
- Fixed typing issue with Pyright/Pylance that caused the message: "Literal" is not a class
- Fixed wrong error message when an invalid
Structure
was provided toNDArray
.
- Fixed bug that caused MyPy to fail with the message: Value of type variable "_DType_co" of "ndarray" cannot be "floating[Any]"
- Fixed bug that numpy ndarrays were incorrectly instance checked against
RecArray
.
- Added
Structure
and "structure expressions" to support structured arrays. - Added
RecArray
.
Thanks to Jasha10 for this release.
- Added an improved default message for
assert_isinstance
.
Also some typos in README, in test_mypy.py
and some style corrections.
Changes since 1.4.4
:
- Changed the interface of
NDArray
intoNDArray[SHAPE, DTYPE]
- Added MyPy-acceptance (limited static type checking)
- Added support for variables
- Added support for labels and named dimensions
- Added support for all numpy dtypes with
NDArray
- Added support for dynamic type checker: beartype
- Added support for dynamic type checker: typeguard
- Added autocompletion for all attributes of
ndarray
- Added CONTRIBUTING.md
- Removed support for Python 3.5 and Python 3.6
- Changed the interface of
NDArray
: switched the order toNDArray[SHAPE, DTYPE]
to be compatible tonumpy.ndarray.pyi
- Added autocompletion for all attributes of
ndarray
by changing the implementation ofNDArray
- Added CONTRIBUTING.md
- Added support for dynamic type checker: beartype
- Added support for dynamic type checker: typeguard
- Changed the interface of
NDArray
- Added MyPy-acceptance (limited static type checking)
- Added support for variables
- Added support for labels and named dimensions
- Added support for all numpy dtypes with
NDArray
- Removed support for Python 3.5 and Python 3.6
- Fixed instance checks with 0d arrays.
- Fixed setup.py to exclude test(-resources) in the wheel.
- Fixed instance check that was incompatible with
typish==1.9.2
.
- Fixed instance checks of some types that did not properly respond to non-numpy types.
- Fixed instance checks with
nptyping.Object
. - Fixed identities of NPTyping instances:
NDArray[(3,), int] is NDArray[(3,), int]
.
- Added
SubArrayType
- Added
StructuredType
- Added support for unsigned integers with
py_type
.
- Added
Complex128
- Added
Bool
- Added
Datetime64
- Added
Timedelta64
- Removed
Array
- Added
get_type
- Added
Int
- Added
UInt
- Added
Float
- Added
Unicode
- Added
Number
- Added
NPType
- Added a hash function to
_NDArrayMeta
.
- Added
NDArray
- Deprecated
Array
- Forbidden instantiation of
Array
- Added support for hinting ndarray methods
- Added support for heterogeneous arrays
- Added HISTORY.rst
- Initial release