Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor the Deserialization API into an Assertion API #1652

Merged
merged 1 commit into from
Jul 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions betty/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,13 @@
from typing_extensions import override

from betty import fs
from betty.assertion import (
OptionalField,
assert_record,
assert_setattr,
assert_str,
)
from betty.assertion.error import AssertionFailed
from betty.assets import AssetRepository
from betty.asyncio import wait_to_thread
from betty.cache.file import BinaryFileCache, PickledFileCache
Expand All @@ -25,13 +32,6 @@
from betty.locale import LocalizerRepository, get_data, DEFAULT_LOCALE, Localizer
from betty.locale.localizable import _
from betty.serde.dump import minimize, void_none, Dump, VoidableDump
from betty.serde.load import (
AssertionFailed,
OptionalField,
assert_record,
assert_setattr,
assert_str,
)
from betty.warnings import deprecate

if TYPE_CHECKING:
Expand Down
Loading
Loading