Skip to content

v1.6.6

Latest
Compare
Choose a tag to compare
@sneakers-the-rat sneakers-the-rat released this 14 Dec 02:21
62f307f

1.6.6 - 24-12-13

Bugfix

  • #38, #39 -
    • JSON Schema generation failed when the dtype was embedded from dtypes that lack a __name__ attribute.
      An additional check was added for presence of __name__ when embedding.
    • NDArray types were incorrectly cached s.t. pipe-union dtypes were considered equivalent to Union[]
      dtypes. An additional tuple with the type of the args was added to the cache key to disambiguate them.
  • #38, #40 -
    • Tuple dtypes were naively checked by just testing for whether the given dtype was contained by the tuple,
      ignoring special cases like string type checking. Tuple dtypes are now checked recursively with the same
      logic as all other type checking.
    • Zarr treats dtype=str as numpy type O - added special case when validating from JSON to cast to np.str_

Testing

  • #39 - Test that all combinations of shapes, dtypes, and interfaces
    can generate JSON schema.
  • #39 - Add python 3.13 to the testing matrix.
  • #39 - Add an additional marks field to ValidationCase
    for finer-grained control over running tests.
  • #40 - Explicitly test for np.str_ annotation dtypes alone and
    in tuples.