Typical

Latest version: v2.8.1

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

Scan your dependencies

Page 4 of 12

2.6.0

Features

- Support un-tagged, "Generic" Unions (e.g., `Union[int, str]`) (19, [docs](https://python-typical.org/usage/types/#unions-polymorphic-types))
- Basic support for Callable types (159)

Misc

- Re-worked handler dispatch in deserializer builder.
- More idiomatic implementation of delayed SerdeProtocols

2.5.0

Features

- This release adds support for Python 3.10.0rc1 (162)

Bugfixes

- Fix resolution of env-var aliases.
- Use lazy iterator factory when we can't guess the type.

2.4.2

Bugfixes

- The new serialization protocol didn't properly check for whether the type was a TypedDict.
- Translation and Iteration now work as expected against TypeDict types.

Misc

- Allow `__slots__` to indicates fields which can be used during iteration and translation.

2.4.1

This adds awareness of defined SerdeFlags in the functional API as well as with the translation and iteration compilers.

2.4.0

Features

- Improve serialization performance by 3x (161)
- Add `iterate(...)` to top-level API (161, [docs](https://python-typical.org/usage/api/#typiciterate))
- Add support for "downcasting" an object to a naive collection or iterator in translator (161)
- Add support for PEP 585 builtin generics and PEP 604 Union Operators (161)
- Advanced type hints for SerdeProtocol using Generics and Protocols, to support `SerdeProtocol[int]`, etc. (158)

Bugfixes

- Fix support for NamedTuples in translation and iteration (161)

2.3.3

Previously, if a default value was provided for a field in a settings class, we wouldn't lookup field in the environment. This was counter-intuitive. Now, if a default value is provided, we will defer to the environment before using the provided default.

Page 4 of 12

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.