Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
exc.py22 linesDownload Raw Back to asyncio
1# ext/asyncio/exc.py
2# Copyright (C) 2020-2026 the SQLAlchemy authors and contributors
3# <see AUTHORS file>
4#
5# This module is part of SQLAlchemy and is released under
6# the MIT License: https://www.opensource.org/licenses/mit-license.php
7
8from ... import exc
9
10
11class AsyncMethodRequired(exc.InvalidRequestError):
12    """an API can't be used because its result would not be
13    compatible with async"""
14
15
16class AsyncContextNotStarted(exc.InvalidRequestError):
17    """a startable context manager has not been started."""
18
19
20class AsyncContextAlreadyStarted(exc.InvalidRequestError):
21    """a startable context manager is already started."""
22 
codekingpro/portable-devtools · Team Ai