Skip to content

Commit d037e42

Browse files
authored
Merge branch 'main' into feat/contrib-msgspec-cleanup
2 parents d8e82fb + ca90e48 commit d037e42

5 files changed

Lines changed: 4 additions & 9 deletions

File tree

docs/conf.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@
6464
"redis": ("https://redis.readthedocs.io/en/stable/", None),
6565
"structlog": ("https://www.structlog.org/en/stable/", None),
6666
"tortoise": ("https://tortoise.github.io/", None),
67-
"piccolo": ("https://piccolo-orm.readthedocs.io/en/latest/", None),
6867
"opentelemetry": ("https://opentelemetry-python.readthedocs.io/en/latest/", None),
6968
"advanced-alchemy": ("https://advanced-alchemy.litestar.dev/latest/", None),
7069
"jinja2": ("https://jinja.palletsprojects.com/en/latest/", None),
@@ -167,7 +166,6 @@
167166
(PY_CLASS, "litestar.response.RedirectResponse"),
168167
(PY_CLASS, "litestar.response_containers.Redirect"),
169168
(PY_CLASS, "litestar.response_containers.Template"),
170-
(PY_CLASS, "litestar.contrib.htmx.request.HTMXRequest"),
171169
(PY_CLASS, "litestar.typing.ParsedType"),
172170
(PY_METH, "litestar.dto.factory.DTOData.create_instance"),
173171
(PY_METH, "litestar.dto.interface.DTOInterface.data_to_encodable_type"),
@@ -189,8 +187,6 @@
189187
(PY_CLASS, "litestar.contrib.mako.P"),
190188
(PY_CLASS, "JWTDecodeOptions"),
191189
(PY_CLASS, "litestar.template.base.P"),
192-
(PY_CLASS, "litestar.contrib.pydantic.PydanticDTO"),
193-
(PY_CLASS, "litestar.contrib.pydantic.PydanticPlugin"),
194190
(PY_CLASS, "typing.Self"),
195191
(PY_CLASS, "attr.AttrsInstance"),
196192
(PY_CLASS, "typing_extensions.TypeGuard"),

docs/release-notes/2.x-changelog.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1600,7 +1600,7 @@
16001600
:pr: 2404
16011601
:issue: 2373
16021602

1603-
A new :class:`~litestar.contrib.pydantic.PydanticPlugin` has been added, which
1603+
A new ``PydanticPlugin`` has been added, which
16041604
can be used to configure Pydantic behaviour. Currently it supports setting a
16051605
``prefer_alias`` option, which will pass the ``by_alias=True`` flag to Pydantic
16061606
when exporting models, as well as generate schemas accordingly.
@@ -2704,7 +2704,7 @@
27042704
`Pydantic <https://docs.pydantic.dev/latest/>`_ have been added:
27052705

27062706
- ``MsgspecDTO``
2707-
- :class:`~litestar.contrib.pydantic.PydanticDTO`
2707+
- ``PydanticDTO``
27082708

27092709
.. change:: DTOs: Arbitrary generic wrappers
27102710
:pr: 1801

docs/release-notes/changelog.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@
289289
:issue: 4349
290290

291291
New ``round_trip: bool`` parameter
292-
to :class:`~litestar.contrib.pydantic.PydanticPlugin` allows
292+
to ``PydanticPlugin`` allows
293293
serializing types like ``pydanctic.Json`` correctly.
294294

295295
.. change:: Remove deprecated ``litestar.contrib.minijinja.minijinja_from_state`` function

docs/release-notes/whats-new-2.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,7 @@ and can be used to define DTOs:
439439
- :class:`litestar.dto.dataclass_dto.DataclassDTO`
440440
- :class:`litestar.dto.msgspec_dto.MsgspecDTO`
441441
- :class:`advanced_alchemy.extensions.litestar.dto.SQLAlchemyDTO`
442-
- :class:`litestar.contrib.pydantic.PydanticDTO`
442+
- ``litestar.contrib.pydantic.PydanticDTO``
443443
- :class:`!litestar.contrib.piccolo.PiccoloDTO`
444444

445445
For example, to define a DTO from a dataclass:

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,6 @@ module = [
302302
"litestar.contrib.sqlalchemy.*",
303303
"litestar.plugins.pydantic.*",
304304
"tests.unit.test_contrib.test_sqlalchemy",
305-
"tests.unit.test_contrib.test_pydantic.*",
306305
"tests.unit.test_logging.test_logging_config",
307306
"litestar.openapi.spec.base",
308307
"litestar.utils.helpers",

0 commit comments

Comments
 (0)