From 6ac304dbeb893fcb49303c2daa96a70d10fba129 Mon Sep 17 00:00:00 2001 From: WizzyGeek Date: Wed, 17 Jan 2024 01:41:59 +0530 Subject: [PATCH] misc: re-export symbols in tortoise.contrib.pydantic --- tortoise/contrib/pydantic/__init__.py | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/tortoise/contrib/pydantic/__init__.py b/tortoise/contrib/pydantic/__init__.py index c77d958cb..1257c2eb7 100644 --- a/tortoise/contrib/pydantic/__init__.py +++ b/tortoise/contrib/pydantic/__init__.py @@ -1,4 +1,12 @@ -from tortoise.contrib.pydantic.base import PydanticListModel # noqa -from tortoise.contrib.pydantic.base import PydanticModel # noqa -from tortoise.contrib.pydantic.creator import pydantic_model_creator # noqa -from tortoise.contrib.pydantic.creator import pydantic_queryset_creator # noqa +from tortoise.contrib.pydantic.base import PydanticListModel, PydanticModel +from tortoise.contrib.pydantic.creator import ( + pydantic_model_creator, + pydantic_queryset_creator, +) + +__all__ = ( + "PydanticListModel", + "PydanticModel", + "pydantic_model_creator", + "pydantic_queryset_creator", +)