Erdantic

Latest version: v1.0.3

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

Scan your dependencies

Page 3 of 4

0.4.0

- Added support for showing field documentation from Pydantic models with descriptions set with `Field(description=...)` in SVG tooltips. This will add an "Attributes" section to the tooltip using Google-style docstring format and lists fields where the `description` keyword argument is used. ([Issue 8](https://github.com/drivendataorg/erdantic/issues/8#issuecomment-958905131), [PR 42](https://github.com/drivendataorg/erdantic/pull/42))

0.3.0

- Fixed handling of forward references in field type declarations. Evaluated forward references will be properly identified. Forward references not converted to `typing.ForwardRef` will throw a `StringForwardRefError` with instructions for how to resolve. Unevaluated forward references will throw an `UnevaluatedForwardRefError` with instructions for how to resolve. See [new documentation](https://erdantic.drivendata.org/stable/forward-references/) for more details. ([Issue #40](https://github.com/drivendataorg/erdantic/issues/40), [PR #41](https://github.com/drivendataorg/erdantic/pull/41))
- Changed name of `erdantic.errors` module to `erdantic.exceptions`. ([PR 41](https://github.com/drivendataorg/erdantic/issues/41))
- Added new `ErdanticException` base class from which other exceptions raised within the erdantic library are subclassed from. Changed several existing `ValueError` exceptions to new exception classes that subclass both `ErdanticException` and `ValueError`. ([PR 41](https://github.com/drivendataorg/erdantic/issues/41))
- Changed `__lt__` method on `Model` and `Edge` to return `NotImplemented` instead of raising an exception to follow typical convention for unsupported input types. ([PR 41](https://github.com/drivendataorg/erdantic/issues/41))

0.2.1

- Fixed runtime error when rendering a data model that had a field containing `typing.Any`. ([Issue 25](https://github.com/drivendataorg/erdantic/issues/25), [PR #26](https://github.com/drivendataorg/erdantic/issues/26))

0.2.0

- Added option to specify models as terminal nodes. This allows you to truncate large diagrams and split them up into smaller ones. ([PR 24](https://github.com/drivendataorg/erdantic/pull/24))

0.1.2

- Fixed bug where Pydantic fields were missing generics in their type annotations. ([PR 19](https://github.com/drivendataorg/erdantic/pull/19))
- Added tests against static rendered DOT output. Change adapter tests to use parameterized fixtures. ([PR 21](https://github.com/drivendataorg/erdantic/pull/21))

0.1.1

- Fixed rendered example image in the package description on PyPI. ([PR 18](https://github.com/drivendataorg/erdantic/pull/18))

Page 3 of 4

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.