What’s new¶
Lot’s have been done since I started the project to when I write this doc now, about
These are the highlights
pyoload v2.0.2¶
Added support for python built-in Iterable, Iterator and Mapping
pyoload v2.0.1¶
Corrected bug when using Unions of Generic Aliases
Inspect.signature called only once, but called again if annotations are modified.
Added checks negation by prepending with _
A list of functions checks could now be passed as positional arguments to pyoload.Checks
Increases the coverage to 99%
pyoload v2.0.0¶
Greatly worked on the docs to make them more undetsandable and increase coverage.
Renamed overload to multiple dispatch or multimethod as required, since As from Overload or multimethod.
Added new options to pyoload.Checks such as registerring under multiple names.
Increased the pytest coverage to ensure the full functionality of pyoload on the several supported python versions.
Greatly improved performance using inspect.Signature. Providing support for partial annotating of function.(Yes, from v2.0.0 some annotations may be ommited).
Added helper methods for interacting with annotated functions, They include
pyoload.annotable
pyoload.unannotable
pyoload.is_annotable
pyoload.is_annotated
Those methods will help you prevent some functions from being annotated.
Improved support for python 3.9 and 3.10
renamed functions as the previous pyoload.typeMatch to pyoload.type_match to follow the snake case system of nomenclature.
pyoload.type_match returns a tuple of the matchin status and errors which may have lead to type mismatch, thosse errors are added to traceback to ease debugging.
Now most classes implement __slots__ to improve memory size.