From 1fd159a70d3e8c452a441682030a88d09ced86f6 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Mon, 19 Apr 2021 03:34:03 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Decorator=20factory=20shouldn't?= =?UTF-8?q?=20be=20async?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- royalnet/engineer/bolts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/royalnet/engineer/bolts.py b/royalnet/engineer/bolts.py index 38c7461c..53698445 100644 --- a/royalnet/engineer/bolts.py +++ b/royalnet/engineer/bolts.py @@ -14,7 +14,7 @@ import royalnet.lazy log = logging.getLogger(__name__) -async def use_database(session_class: t.Union[t.Type[sqlalchemy.orm.Session], royalnet.lazy.Lazy], *args, **kwargs): +def use_database(session_class: t.Union[t.Type[sqlalchemy.orm.Session], royalnet.lazy.Lazy], *args, **kwargs): """ Decorator factory which allows a :class:`~royalnet.engineer.conversation.Conversation` to use a :class:`sqlalchemy.orm.Session` created from the passed :class:`sqlalchemy.orm.sessionmaker` .