Typical

Latest version: v2.8.1

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

Scan your dependencies

Page 11 of 12

2.0.5

The previous implementation of our setattr interception caused infinite recursion if the pre-defined setattr on the target class contained a call to `super()`.

Previous attempts to use a decorator to solve this problem were discarded, as they caused significant increases (~+10%) in operation time. This implementation resolves those slowdowns.

This resolves 62

2.0.4

The previous patch broke magic calls to `super()`. This patches that issue.

2.0.3

Bugfix: Premature annotation resolution for typed classes breaks instance checks on subclassed objects (58 )

2.0.2

Also ensure custom ports are represented in the `info.base` attribute.

2.0.1

There were a small subset of cases where a nested custom class which had not been previously resolved by typical would receive the wrong set of target fields for serialization. This has now been fixed.

2.0.0

This release brings an entirely new annotation resolution engine which
is backwards-incompatible with v1.

New features include:

1. `typic.protocol` for binding a serialization & deserialization
for any type or annotation.
2. `typic.constrained` for definining restricted versions of
builtin types.
3. `typic.settings` for resolving the default values of a dataclass
from your environment variables
4. A whole new suite of useful types, including:
- `FrozenDict`, a hashable, immutable dictionary
- `DSN`, a JSON-serializable string-type for your database URIs
- `URL`, a JSON-serializable string-type for your URLs
- `Email`, a JSON-serializable string-type for emails
- `SecretString`, a JSON-serializable string-type for hiding
secrets when logging or printing
5. `typic.schema` for getting a valid JSON Schema definition for
your classes and type annotations. ``typical`` classes also have
access to this as a classmethod.
6. `typic.primitive` for extracting a valid JSON-serializable
primitive from just about anything. ``typical`` classes also have
access to this as an instance method.
7. `typic.tojson` for dumping any value directly to a JSON-compliant string.

And so much more. Check out the [documentation](https://python-typical.org/) for details!

Page 11 of 12

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.