diff options
author | mike bayer <mike_mp@zzzcomputing.com> | 2022-02-16 00:15:54 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@ci3.zzzcomputing.com> | 2022-02-16 00:15:54 +0000 |
commit | 20213fd1f27fea51015d753bf94c6f40674ae86f (patch) | |
tree | 4084db761b0731c2c192081c1481e5240722b66f /lib/sqlalchemy/util/concurrency.py | |
parent | bcd4e36ab466e8e300bd704dd3b7e6e8470a2972 (diff) | |
parent | 5c6081ddb03447697f909a03572b6d6d79e61b71 (diff) | |
download | sqlalchemy-20213fd1f27fea51015d753bf94c6f40674ae86f.tar.gz |
Merge "pep-484 for sqlalchemy.event; use future annotations" into main
Diffstat (limited to 'lib/sqlalchemy/util/concurrency.py')
-rw-r--r-- | lib/sqlalchemy/util/concurrency.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/sqlalchemy/util/concurrency.py b/lib/sqlalchemy/util/concurrency.py index 6b94a2294..778d1275b 100644 --- a/lib/sqlalchemy/util/concurrency.py +++ b/lib/sqlalchemy/util/concurrency.py @@ -4,8 +4,10 @@ # # This module is part of SQLAlchemy and is released under # the MIT License: https://www.opensource.org/licenses/mit-license.php +from __future__ import annotations import asyncio # noqa +import typing have_greenlet = False greenlet_error = None @@ -28,7 +30,7 @@ else: _util_async_run_coroutine_function as _util_async_run_coroutine_function, # noqa F401, E501 ) -if not have_greenlet: +if not typing.TYPE_CHECKING and not have_greenlet: def _not_implemented(): # this conditional is to prevent pylance from considering |