The Litestar DTO has been enhanced with: - The SQLAlchemyDTOConfig's `exclude`, `include`, and `rename_fields` fields will now accept string or `InstrumentedAttributes` - DTO supports `WriteOnlyMapped` and `DynamicMapped`
Removes the use of lambda statements in the repository and service classes. This has no change on the end user API, however, it should remove strange queries errors seen.
0.23.0
:date: 2025-01-11
.. change:: regression caused by conditional import Sequence for pagination.py :type: bugfix :pr: 274 :issue: 272
Import Sequence directly from collections.abc Remove conditional import using TYPE_CHECKING Add noqa comment to suppress potential linter warnings
.. change:: make sure `anyio` is optional :type: bugfix :pr: 278
When running standalone or with a synchronous web framework, `anyio` is not required. This PR ensures that there are no module loading failures due to the missing import.
.. change:: Improved typing of `ModelDictT` :type: feature :pr: 277
This still doesn't solve the problem of UnknownVariableType if the subtypes of ModelDictT are not installed (eg: Pydantic) But at least it solves the problem of incompatibilities when they are installed