Releases: erezsh/runtype
Releases · erezsh/runtype
0.5.2 - Small fixes
0.5.1 - Bugfixes for dispatch + better docs
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
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 introducedAll
.
-
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
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
0.4.0 - Various improvements
Changes summary:
- Better support for
typing
andtypes
modules, and for generics. - Added the
multidispatch
singleton decorator, andmultidispatch_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__
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
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`
0.2.7 - Added mypy plugin; Fix for TupleType
To use the mypy plugin, create mypy.ini
with the following contents:
[mypy]
plugins = runtype.mypy