Skip to content

Commit

Permalink
fix: corrected import of attrs
Browse files Browse the repository at this point in the history
  • Loading branch information
euri10 committed Jan 13, 2025
1 parent 2db1f4d commit 6cd8efb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion litestar/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 6cd8efb

Please sign in to comment.