From 094cd06ebc85d974a1a7f6a9c8c637ca1ef97a77 Mon Sep 17 00:00:00 2001 From: Cody Fincher Date: Sat, 16 Nov 2024 23:27:41 +0000 Subject: [PATCH] fix: linting fixes --- tests/unit/test_contrib/test_attrs.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/unit/test_contrib/test_attrs.py b/tests/unit/test_contrib/test_attrs.py index 7334f1a2dd..ccd522fcb9 100644 --- a/tests/unit/test_contrib/test_attrs.py +++ b/tests/unit/test_contrib/test_attrs.py @@ -24,7 +24,7 @@ def test_contrib_attrs_deprecation_warning() -> None: purge_module(["litestar.contrib.attrs"], __file__) with pytest.warns( DeprecationWarning, match="importing AttrsSchemaPlugin from 'litestar.contrib.attrs' is deprecated" - ) as warning_info: + ): from litestar.contrib.attrs import AttrsSchemaPlugin @@ -34,7 +34,7 @@ def test_contrib_attrs_schema_deprecation_warning() -> None: with pytest.warns( DeprecationWarning, match="importing AttrsSchemaPlugin from 'litestar.contrib.attrs.attrs_schema_plugin' is deprecated", - ) as warning_info: + ): from litestar.contrib.attrs.attrs_schema_plugin import AttrsSchemaPlugin