Skip to content

v0.7.3

Compare
Choose a tag to compare
@yukinarit yukinarit released this 10 May 14:38
508c54d

Thanks to the great contribution by @kmsquire, pyserde supports some numpy types!

@serde
class NPFoo:
    i: np.int32
    j: np.int64
    f: np.float32
    g: np.float64
    h: np.bool_
    u: np.ndarray
    v: npt.NDArray
    w: npt.NDArray[np.int32]
    x: npt.NDArray[np.int64]
    y: npt.NDArray[np.float32]
    z: npt.NDArray[np.float64]
  • feat: Remove try-catch from is_numpy_array() (unnecessary) (731876f)
  • feat: Support Literal[...] type annotation (e50c958)
  • feat: Support numpy types (78eb22e)
  • feat(compat): Only define np_get_origin() for python 3.8 or earlier (02c5af2)
  • feat(numpy): Support serialization of numpy.datetime64 (5e521cf)
  • Don't import tests module from pyserde package (d664426)
  • fix: Recognized numpy arrays on Python 3.7, 3.8 (a0fa36f)
  • fix(numpy): Fix direct numpy array deserialization (8f9f71c)
  • ci: Remove pypy-3.8 until a numpy wheel is released for it (61b6130)
  • chore: Update black, fix test_union formatting (4a708fd)
  • chore: Update numpy version specification based on numpy compatibility with python (1fa5e07)

This release had contributions from 2 people: @kmsquire and @chagui. Thank you so much! 🎉 😂