From f531690b98866510eefb72afe29871a84e136747 Mon Sep 17 00:00:00 2001 From: Cody Fincher Date: Sun, 10 Nov 2024 20:35:51 +0000 Subject: [PATCH] feat: ignore deprecation in codecov --- litestar/contrib/pydantic/__init__.py | 2 +- litestar/contrib/pydantic/pydantic_di_plugin.py | 2 +- litestar/contrib/pydantic/pydantic_dto_factory.py | 2 +- litestar/contrib/pydantic/pydantic_init_plugin.py | 2 +- litestar/contrib/pydantic/pydantic_schema_plugin.py | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/litestar/contrib/pydantic/__init__.py b/litestar/contrib/pydantic/__init__.py index 0d547c92b1..66a42f47cc 100644 --- a/litestar/contrib/pydantic/__init__.py +++ b/litestar/contrib/pydantic/__init__.py @@ -35,7 +35,7 @@ def __getattr__(attr_name: str) -> object: value = globals()[attr_name] = locals()[attr_name] return value - raise AttributeError(f"module {__name__!r} has no attribute {attr_name!r}") + raise AttributeError(f"module {__name__!r} has no attribute {attr_name!r}") # pragma: no cover if TYPE_CHECKING: diff --git a/litestar/contrib/pydantic/pydantic_di_plugin.py b/litestar/contrib/pydantic/pydantic_di_plugin.py index 456459a052..01195d480f 100644 --- a/litestar/contrib/pydantic/pydantic_di_plugin.py +++ b/litestar/contrib/pydantic/pydantic_di_plugin.py @@ -8,7 +8,7 @@ __all__ = ("PydanticDIPlugin",) -def __getattr__(attr_name: str) -> object: +def __getattr__(attr_name: str) -> object: # pragma: no cover if attr_name in __all__: from litestar.plugins.pydantic.plugins.di import PydanticDIPlugin diff --git a/litestar/contrib/pydantic/pydantic_dto_factory.py b/litestar/contrib/pydantic/pydantic_dto_factory.py index f5b767cf70..93f0f7558b 100644 --- a/litestar/contrib/pydantic/pydantic_dto_factory.py +++ b/litestar/contrib/pydantic/pydantic_dto_factory.py @@ -8,7 +8,7 @@ __all__ = ("PydanticDTO",) -def __getattr__(attr_name: str) -> object: +def __getattr__(attr_name: str) -> object: # pragma: no cover if attr_name in __all__: from litestar.plugins.pydantic.dto import PydanticDTO diff --git a/litestar/contrib/pydantic/pydantic_init_plugin.py b/litestar/contrib/pydantic/pydantic_init_plugin.py index 52fcbacc15..8a927f8e77 100644 --- a/litestar/contrib/pydantic/pydantic_init_plugin.py +++ b/litestar/contrib/pydantic/pydantic_init_plugin.py @@ -8,7 +8,7 @@ __all__ = ("PydanticInitPlugin",) -def __getattr__(attr_name: str) -> object: +def __getattr__(attr_name: str) -> object: # pragma: no cover if attr_name in __all__: from litestar.plugins.pydantic.plugins.init import PydanticInitPlugin diff --git a/litestar/contrib/pydantic/pydantic_schema_plugin.py b/litestar/contrib/pydantic/pydantic_schema_plugin.py index 6b3a196a0b..fc1d2c6825 100644 --- a/litestar/contrib/pydantic/pydantic_schema_plugin.py +++ b/litestar/contrib/pydantic/pydantic_schema_plugin.py @@ -8,7 +8,7 @@ __all__ = ("PydanticSchemaPlugin",) -def __getattr__(attr_name: str) -> object: +def __getattr__(attr_name: str) -> object: # pragma: no cover if attr_name in __all__: from litestar.plugins.pydantic.plugins.schema import PydanticSchemaPlugin