query-things/query_things/common/__init__.py
Michael Hanke ca5af42e29
All checks were successful
Codespell / Check for spelling errors (push) Successful in 39s
Ruff / Code linting (push) Successful in 44s
Conventional commits / check-messages (push) Successful in 55s
Type annotation (project) / check (push) Successful in 1m4s
Unit tests (Linux) / check (push) Successful in 1m44s
rf: use central jsonl_from_record() helper for all dict->str
2026-09-01 11:41:27 +02:00

35 lines
772 B
Python

from typing import (
Any,
TypeAlias,
)
from .api import make_record_resolver # noqa: TID252
from .cache import RecordCache # noqa: TID252
from .jsonl import ( # noqa: TID252
jsonl_from_record,
parse_json_objects,
)
from .linking import ( # noqa: TID252
all_records_have_links,
iter_link_pids,
record_has_link,
record_has_link_any,
)
from .records import homogenize_annotations # noqa: TID252
# standard type to use anywhere a record goes
Record: TypeAlias = dict[str, Any]
__all__ = [
'Record',
'RecordCache',
'all_records_have_links',
'homogenize_annotations',
'iter_link_pids',
'jsonl_from_record',
'make_record_resolver',
'parse_json_objects',
'record_has_link',
'record_has_link_any',
]