From 6cd8efb25dc51ec28383422772cdb2ab94a547af Mon Sep 17 00:00:00 2001 From: euri10 Date: Mon, 13 Jan 2025 06:33:20 +0100 Subject: [PATCH] fix: corrected import of attrs --- litestar/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litestar/app.py b/litestar/app.py index 0e51a9f0e7..71d373a23f 100644 --- a/litestar/app.py +++ b/litestar/app.py @@ -563,7 +563,7 @@ def _get_default_plugins(plugins: list[PluginProtocol]) -> list[PluginProtocol]: if not pydantic_plugin_found and not pydantic_serialization_plugin_found: plugins.append(PydanticDIPlugin()) with suppress(MissingDependencyException): - from litestar.contrib.attrs import AttrsSchemaPlugin + from litestar.plugins.attrs import AttrsSchemaPlugin pre_configured = any(isinstance(plugin, AttrsSchemaPlugin) for plugin in plugins) if not pre_configured: