1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-26 21:14:19 +00:00

🐛 Decorator factory shouldn't be async

This commit is contained in:
Steffo 2021-04-19 03:34:03 +02:00
parent 4c377619fe
commit 1fd159a70d
Signed by: steffo
GPG key ID: 6965406171929D01

View file

@ -14,7 +14,7 @@ import royalnet.lazy
log = logging.getLogger(__name__) 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 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` . :class:`sqlalchemy.orm.Session` created from the passed :class:`sqlalchemy.orm.sessionmaker` .