diff options
author | Federico Caselli <cfederico87@gmail.com> | 2022-04-11 22:21:20 +0200 |
---|---|---|
committer | Federico Caselli <cfederico87@gmail.com> | 2022-04-11 22:48:23 +0200 |
commit | 11bf82447438a9d5d9df9d613bf245694d6120dc (patch) | |
tree | 727dd81d7dbf9811b15639aabb4ee69ce4ee5646 /lib/sqlalchemy/util/concurrency.py | |
parent | fd052732604a0d03167978215f0077e60b75851d (diff) | |
download | sqlalchemy-11bf82447438a9d5d9df9d613bf245694d6120dc.tar.gz |
update flake8 noqa skips with proper syntax
Change-Id: I42ed77f559e3ee5b8c600d98457ee37803ef0ea6
Diffstat (limited to 'lib/sqlalchemy/util/concurrency.py')
-rw-r--r-- | lib/sqlalchemy/util/concurrency.py | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/lib/sqlalchemy/util/concurrency.py b/lib/sqlalchemy/util/concurrency.py index 778d1275b..c1d53cc16 100644 --- a/lib/sqlalchemy/util/concurrency.py +++ b/lib/sqlalchemy/util/concurrency.py @@ -12,7 +12,7 @@ import typing have_greenlet = False greenlet_error = None try: - import greenlet # type: ignore # noqa F401 + import greenlet # type: ignore # noqa: F401 except ImportError as e: greenlet_error = str(e) pass @@ -25,9 +25,9 @@ else: from ._concurrency_py3k import AsyncAdaptedLock as AsyncAdaptedLock from ._concurrency_py3k import ( _util_async_run as _util_async_run, - ) # noqa F401 + ) # noqa: F401 from ._concurrency_py3k import ( - _util_async_run_coroutine_function as _util_async_run_coroutine_function, # noqa F401, E501 + _util_async_run_coroutine_function as _util_async_run_coroutine_function, # noqa: F401, E501 ) if not typing.TYPE_CHECKING and not have_greenlet: @@ -45,23 +45,23 @@ if not typing.TYPE_CHECKING and not have_greenlet: else "" ) - def is_exit_exception(e): # noqa F811 + def is_exit_exception(e): return not isinstance(e, Exception) - def await_only(thing): # type: ignore # noqa F811 + def await_only(thing): # type: ignore _not_implemented() - def await_fallback(thing): # type: ignore # noqa F81 + def await_fallback(thing): # type: ignore return thing - def greenlet_spawn(fn, *args, **kw): # type: ignore # noqa F81 + def greenlet_spawn(fn, *args, **kw): # type: ignore _not_implemented() - def AsyncAdaptedLock(*args, **kw): # type: ignore # noqa F81 + def AsyncAdaptedLock(*args, **kw): # type: ignore _not_implemented() - def _util_async_run(fn, *arg, **kw): # type: ignore # noqa F81 + def _util_async_run(fn, *arg, **kw): # type: ignore return fn(*arg, **kw) - def _util_async_run_coroutine_function(fn, *arg, **kw): # type: ignore # noqa F81 + def _util_async_run_coroutine_function(fn, *arg, **kw): # type: ignore _not_implemented() |