Typical

Latest version: v2.9.0

Safety actively analyzes 682244 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 9 of 13

2.0.18

Fixes:
- SerdeFlags inheritance (resolves 96 )
- Passing callables to wrapped objects (partially resolves 95 )
- Fix deserialization of subclassed enums with default values (resolves 98 )
- Fix nested deserialization & translation for arbitrary classes.

Improvements:
- Faster serialization with less state-tracking by overloading `__missing__` on serdict objects.
- Migrate away from using `type()` calls to extract an instance's type (`inst.__class__` is measurably faster) during validation and deserialization.
- Use `__slots__` for internal data-structures for faster runtime with less memory usage.
- Provide `slots` option for `typic.klass` & `slotted` decorator for dataclasses.
- More flexibility when translating arbitrary classes by adding detection of required fields.
- Even more benchmarks!

2.0.17

pendulum` provides a factory function for converting an instance of `datetime.datetime` to `pendulum.DateTime`. We now us this factory if possible in the generated deserializer.

2.0.16

Improvements:
- Expanded benchmarks suite.
- Huge optimizations for functional/protocol API.
- Unify method for naming generated functions.
- Explicitly handle misconfigured serialization with clear error messages.

Bugfixes:
- Fixes conversion between path-types (resolves 88).
- Fixes validation of builtin types (resolves 89).
- Fixes validation of nested, constrained, optional types (These previously did not respect `optional/nullable` flags).

2.0.15

pathlib` makes use of meta-classes to determine the correct path-type on init. This caused validation to fail for Path sub-classes in Unions (85).

2.0.14

This fixes a regression in compiling mapping deserializers which was introduced when adding support for defaultdict, which caused optional mappings to fail to compile.

This resolves 83.

2.0.13

This adds a new lazy evaluation of field names during validation, saving any computational cost until error-reporting (resolves 81). Additionally, this is now appropriately type-safe for Mapping constraints (resolves 80).

This also iscreases the validation-strictness for high-level builtins (resolves 55).

Page 9 of 13

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.