Nptyping Versions Save

💡 Type hints for Numpy and Pandas

v2.5.0

1 year ago
  • Added the column wildcard in structure expressions to allow expressing 'a structure with at least ...'.
  • Fixed the help text for functions that use nptyping types as hints.
  • Fixed the distribution of dataframe.pyi that was missing.
  • Fixed the sdist to include tests and dependencies.

v2.4.1

1 year ago
  • Fixed compatibility with mypy==0.991.

v2.4.0

1 year ago
  • 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 generic numpy.integer rather than numpy.int32.
  • Added support for Python 3.11 with the exception of pandas.DataFrame.

v2.3.1

1 year ago
  • 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

1 year ago
  • Added support for subarrays with shape expressions inside structure expressions.
  • Added support for wildcards in structure expressions.

v2.2.0

1 year ago
  • Added support for expressing "at least N dimensions".

v2.1.3

1 year ago
  • 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 to NDArray.

v2.1.2

1 year ago
  • 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

1 year ago
  • Fixed bug that numpy ndarrays were incorrectly instance checked against RecArray.

v2.1.0

2 years ago
  • Added Structure and "structure expressions" to support structured arrays.
  • Added RecArray.