Skip to content

0.4.1

Latest

Choose a tag to compare

@FancyNeuron FancyNeuron released this 24 Jul 14:08

New Features

  • Value[S] inherits from BiObserver[S, S] again
  • Add classes StaticObservableSequence[S] and FrozenObservableSequence[S], both are unchanging sequences, but FrozenObservableSequence[S] is hashable (and therefore requires all its elements to be hashable), like frozenset.

Improvements

  • mypy is now executed in strict mode, improving code quality
  • No longer importing protected names (except for base classes)
  • Moving some number related functions from spellbind.functions to spellbind.numbers and make them not protected

Bug fixes

  • Fix type_extensions not imported error, by moving type_extensions from test dependencies to regular project dependencies

Breaking Changes

  • Renamed Value[S].bind_to to Value[S].bind, marking the old variant as deprecated
  • Replaced Observable.__or__, with Observable.or_observable, because it would conflict with BoolValue.__or__. ALternatively use observables.combine_observables, which takes any number of observables
  • Renamed methods map, map_to_two, or_value, etc.. to less verbose names, to better distinguish them from methods on Value[S]