Releases: ramonhagenaars/nptyping
Releases · ramonhagenaars/nptyping
v2.5.0
- 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.
v2.4.1
- Fixed compatibility with
mypy==0.991
.
v2.4.0
- 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
.
v2.3.1
- Fixed mypy error of inheriting final dtype as of numpy==1.23.1.
- Allowed for quotes in shape expressions to appease PyCharm.
v2.3.0
- Added support for subarrays with shape expressions inside structure expressions.
- Added support for wildcards in structure expressions.
v2.2.0
- Added support for expressing "at least N dimensions".
v2.1.3
- 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
.
v2.1.2
- Fixed bug that caused MyPy to fail with the message: Value of type variable "_DType_co" of "ndarray" cannot be "floating[Any]"
v2.1.1
- Fixed bug that numpy ndarrays were incorrectly instance checked against
RecArray
.
v2.1.0
- Added
Structure
and "structure expressions" to support structured arrays. - Added
RecArray
.