Skip to content

Releases: jorenham/optype

v0.6.1

19 Aug 01:12
Compare
Choose a tag to compare

This is a bugfix release with no breaking changes.
However, because optype now uses less typing.Any, which could cause type-checkers to report errors that were previously hidden.

Highlights

What's Changed

Full Changelog: v0.6.0...v0.6.1

v0.6.0

17 Aug 14:29
ce4cfd1
Compare
Choose a tag to compare

Highlights

Breaking changes

  • Increased the minimum Python version from 3.10.0 to 3.10.1
  • Increased the minimum typing_extensions version from 4.7 to 4.8
  • Moved CanCopy, CanDeepcopy and CanReplace from optype._ to optype.copy._
  • Moved HasDataclassFields from optype._ to optype.dataclasses._
  • Moved CanGetnewargs[Ex], CanReduce[Ex], and Can{Get,Set}state from optype._ to optype.pickle._
  • Any*Array and Any*DType for int_, float64 and complex128 don't include int, float, and complex anymore. See numpy/numpy#27032 (comment) for why this was done.

Full Changelog: v0.5.0...v0.6.0

v0.5.0

23 Jun 21:39
62d71eb
Compare
Choose a tag to compare

Release highlights

  • optype.numpy: (optional) NumPy (1 & 2) typing protocols and aliases, see the docs the details
  • Implement PEP 696 type parameter defaults
  • *Self aliases for the context manager Can* interfaces
  • *Self aliases for the inplace operand CanI* interfaces
  • Many documentation fixes & improvements
  • Simplified local development using Tox

Breaking changes

  • typing_extensions is now required for all Python versions <3.13

What's Changed

Full Changelog: v0.4.0...v0.5.0

v0.4.0

15 Apr 04:53
5157ded
Compare
Choose a tag to compare

The minimum required Python version has been lowered from 3.12 to 3.10.

What's Changed

Full Changelog: v0.3.1...v0.4.0

v0.3.1

01 Apr 18:55
add8a2d
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.3.0...v0.3.1

v0.3.0

21 Mar 20:11
f7b418a
Compare
Choose a tag to compare

What's Changed

  • Fix CanAIterSelf not being an AsyncGenerator subtype by @jorenham in #17
  • upgrade pyright to 1.1.355 by @jorenham in #18
  • several doc fixes and improvements by @jorenham in #27
  • add ops for __reversed__ and __missing__ by @jorenham in #28
    • CanSequence[I: CanIndex, V] (combines CanLen and CanGetitem[I, V])
    • do_reversed: DoesReversed (type-corrected alias for builtins.reversed)
    • do_missing: DoesMissing (calls .__missing__())
  • Interfaces for the copy standard library by @jorenham in #29
    • CanCopy[T] and CanCopySelf
    • CanDeepcopy[T] and CanDeepcopySelf
    • CanReplace[T, V] and CanReplaceSelf[V]
  • Interfaces for the pickle standard library by @jorenham in #30
    • CanReduce[R: str | tuple]
    • CanReduceEx[R: str | tuple]
    • CanGetState[S]
    • CanSetState[S]
    • CanGetnewargs[*Args]
    • CanGetnewargsEx[*Args, Kw]
  • upgrade to ruff 0.3.4 by @jorenham in #31
  • Interfaces for the dataclasses standard library by @jorenham in #32
    • HasDataclassFields

Full Changelog: v0.2.2...v0.3.0

v0.2.2

16 Mar 18:42
225d32e
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.2.1...v0.2.2

v0.2.1

14 Mar 18:05
d625ab2
Compare
Choose a tag to compare

What's Changed

  • Bump pytest from 8.0.2 to 8.1.1 by @dependabot in #5
  • Bump pyright to 1.1.354 by @jorenham in #6
  • Configure markdownlint by @jorenham in #7
  • Builtin type constructor operators by @jorenham in #8
    • do_bool: DoesBool
    • do_int: DoesInt
    • do_float: DoesFloat
    • do_complex: DoesComplex
    • do_bytes: DoesBytes
    • do_str: DoesStr
  • Examples & integration tests by @jorenham in #9

New Contributors

Full Changelog: v0.2.0...v0.2.1

v0.2.0

09 Mar 03:38
20fd772
Compare
Choose a tag to compare

What's Changed

  • add 72 operators as optype.do_*, so that optype > operator
  • add callback protocols for the 72 operators as optype.Does*
  • Many documentation improvements
  • [BREAKING] renamed the async CanA{name} types as CanA{Name}, improving readability
  • Fixed several minor typing issues
  • Improved code quality of the tests
  • Streamlined the CI workflow
  • Upgrade ruff to 0.3.2, and tightened some rules
  • Upgrade pyright to 1.1.353

Full Changelog: v0.1.0...v0.2.0

v0.1.0

25 Feb 03:38
614e0b8
Compare
Choose a tag to compare

The official first release of optype 🎉.

What's Changed

  • Everything 🎉

New Contributors

Full Changelog: https://github.com/jorenham/optype/commits/v0.1.0