Skip to content

Releases: erezsh/runtype

0.5.1 - Bugfixes for dispatch + better docs

13 Sep 21:15
Compare
Choose a tag to compare

What's Changed

  • Bugfix in dispatch: Now using qualified name, so methods with same si… by @erezsh in #61
  • Better dispatch docs; cleanup in validation by @erezsh in #63
  • Bugfix in dispatch: Now supports dispatch on user generics, by discar… by @erezsh in #64
  • Bugfix in dispatch: Now properly handles Any by @erezsh in #65

Full Changelog: 0.5.0...0.5.1

0.5.0 - Faster & more correct

19 Jun 16:30
Compare
Choose a tag to compare

Version 0.5.0 comes with -

  • Big Optimizations. Added benchmarks, including code, documentation, and plots.

  • Better Typing

    • Added support for variance in generics
    • Fixed behavior of Any to match mypy and introduced All.
  • Many bug fixes, including in dataclass

  • Upgraded to Python 3.8

What's Changed

  • Small fixes by @erezsh in #49
  • Refactor base_types to use dispatch (WIP) by @erezsh in #34
  • Big optimizations by @erezsh in #50
  • Added benchmarks (code + docs + plot) by @erezsh in #51
  • Bugfix in dataclass when frozen=False; Add docs detailing typing support by @erezsh in #53
  • Implement Variance. List and Dict are now invariant! by @erezsh in #54
  • Implement callable generic with correct variance by @erezsh in #55
  • Added support for typing.IO, TextIO, BinaryIO by @erezsh in #56
  • Fix behavior of Any to match mypy. Add All to signify every-type (aka object) by @erezsh in #57
  • Fix dataclass: Now allows repetitively updating the options (used to … by @erezsh in #58
  • Upgrade to Python 3.8; Better tests by @erezsh in #59
  • Added a couple of tests by @erezsh in #60

Full Changelog: 0.4.2...0.5.0

0.4.2 - Small fixes for typesystem & pytypes

05 Jan 11:30
Compare
Choose a tag to compare

What's Changed

  • Fixes for typesystem (mostly around handling of Any) by @erezsh in #47
  • Various fixes to pytypes + typesystem by @erezsh in #48

Full Changelog: 0.4.1...0.4.2

0.4.1 - Small fix for tuples type checking

19 Dec 04:45
Compare
Choose a tag to compare

What's Changed

  • types: fix for tuple <= sequence by @erezsh in #46

Full Changelog: 0.4.0...0.4.1

0.4.0 - Various improvements

23 Oct 08:07
Compare
Choose a tag to compare

Changes summary:

  • Better support for typing and types modules, and for generics.
  • Added the multidispatch singleton decorator, and multidispatch_final
  • Better support for Mypy
  • Improved performance
  • Deprecated iter(dataclass_instance), which was a confusing behavior

What's Changed

  • Fix for tuple[x, ...]; Fix for comparing generic types; support for types.UnionType by @erezsh in #36
  • refactor + added documentation for mypy support to dispatch by @erezsh in #37
  • Fix: Added support for typing.Mutable* and more by @erezsh in #39
  • Performance improvements by @erezsh in #40
  • Validation: Added support for typing.Type by @erezsh in #41
  • Added multidispatch singleton decorator, and multidispatch_final by @erezsh in #42
  • Deprecate iter(dataclass_instance), which was a confusing behavior. by @erezsh in #43
  • Fix following PR #36 (reported by @KokeCacao) by @erezsh in #44

Full Changelog: 0.3.5...0.4.0

0.3.5 - Bugfixes; Support for dispatch on dataclass __init__

17 Jul 08:02
Compare
Choose a tag to compare

What's Changed

  • Feature: dispatch now works with dataclass __init__, adding to builtin implementation instead of overriding it by @erezsh in #32
  • Bugfix: Had incorrect behavior when check_types=False by @erezsh in #29
  • Better Mypy support + various fixes by @erezsh in #30
  • Better typing and dataclass support by @erezsh in #31
  • Better tests and small fixes by @erezsh in #33
  • Refactoring by @erezsh in #28

Full Changelog: 0.3.2...0.3.5

0.3.2 - Bugfixes, support for Annotated, and more

28 Apr 16:16
ed2d611
Compare
Choose a tag to compare

What's Changed

  • Added support for PEP 0681 - dataclass_transform by @erezsh in #12
  • Bugfix: No longer changing ForwardRef._evaluate, that interfered with… by @erezsh in #16
  • dataclass: Test is_a before calling cast. by @erezsh in #13
  • Implement <= between two OneOf instances (Fix for issue #15) by @erezsh in #17
  • Tests: Add 3.11 to the tests by @erezsh in #18
  • Add support for typing.Annotated (Issue #19) by @erezsh in #20
  • Added support for typing_extensions.Annotated by @erezsh in #21
  • Improve OneOf comparisons and its interaction with Union by @erezsh in #22
  • Added cv_type_checking context var by @erezsh in #25
  • Clean up based on Ruff by @erezsh in #26

Full Changelog: 0.3.0...0.3.2

0.3.0 - Support for forward-references; use Dispatch() in `with`

11 Oct 13:11
Compare
Choose a tag to compare

What's Changed

  • Dispatch() can now be used in 'with'; more tests by @erezsh in #9
  • Several minor fixes by @erezsh in #11
  • Added support for forward-references in dataclasses by @erezsh in #10

Full Changelog: 0.2.7...0.3.0

0.2.7 - Added mypy plugin; Fix for TupleType

05 Jul 13:20
Compare
Choose a tag to compare

To use the mypy plugin, create mypy.ini with the following contents:

[mypy]
plugins = runtype.mypy

0.2.6 - Small fix for 0.2.5

22 Jun 12:56
Compare
Choose a tag to compare
Version bump (0.2.6)