diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2022-05-14 11:13:50 -0400 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2022-05-14 12:28:01 -0400 |
commit | 9f0db34563a05a7b9f6e09110d35ce0d0f36d3a9 (patch) | |
tree | ab407bbcba270696fe7798b043f4521320e19c06 /lib/sqlalchemy/util | |
parent | cd628fad7c92f5f54bf1bf6985fd983269b0ec19 (diff) | |
download | sqlalchemy-9f0db34563a05a7b9f6e09110d35ce0d0f36d3a9.tar.gz |
update for flake8-future-imports 0.0.5
a whole bunch of errors were apparently blocked by 0.0.4
being installed.
Fixes: #8020
Change-Id: I22a0faeaabe03de501897893391946d677c2df7e
Diffstat (limited to 'lib/sqlalchemy/util')
-rw-r--r-- | lib/sqlalchemy/util/concurrency.py | 14 | ||||
-rw-r--r-- | lib/sqlalchemy/util/typing.py | 8 |
2 files changed, 11 insertions, 11 deletions
diff --git a/lib/sqlalchemy/util/concurrency.py b/lib/sqlalchemy/util/concurrency.py index 7bbe9ec19..cd65f80f0 100644 --- a/lib/sqlalchemy/util/concurrency.py +++ b/lib/sqlalchemy/util/concurrency.py @@ -47,23 +47,23 @@ if not typing.TYPE_CHECKING and not have_greenlet: else "" ) - def is_exit_exception(e): + def is_exit_exception(e): # noqa: F811 return not isinstance(e, Exception) - def await_only(thing): # type: ignore + def await_only(thing): # type: ignore # noqa: F811 _not_implemented() - def await_fallback(thing): # type: ignore + def await_fallback(thing): # type: ignore # noqa: F811 return thing - def greenlet_spawn(fn, *args, **kw): # type: ignore + def greenlet_spawn(fn, *args, **kw): # type: ignore # noqa: F811 _not_implemented() - def AsyncAdaptedLock(*args, **kw): # type: ignore + def AsyncAdaptedLock(*args, **kw): # type: ignore # noqa: F811 _not_implemented() - def _util_async_run(fn, *arg, **kw): # type: ignore + def _util_async_run(fn, *arg, **kw): # type: ignore # noqa: F811 return fn(*arg, **kw) - def _util_async_run_coroutine_function(fn, *arg, **kw): # type: ignore + def _util_async_run_coroutine_function(fn, *arg, **kw): # type: ignore # noqa: F811,E501 _not_implemented() diff --git a/lib/sqlalchemy/util/typing.py b/lib/sqlalchemy/util/typing.py index a95f5ab93..ebcae28a7 100644 --- a/lib/sqlalchemy/util/typing.py +++ b/lib/sqlalchemy/util/typing.py @@ -17,7 +17,7 @@ from typing import Type from typing import TypeVar from typing import Union -from typing_extensions import NotRequired as NotRequired +from typing_extensions import NotRequired as NotRequired # noqa: F401 from . import compat @@ -41,13 +41,13 @@ if compat.py310: from typing import TypeGuard as TypeGuard from typing import TypeAlias as TypeAlias else: - from typing_extensions import TypeGuard as TypeGuard - from typing_extensions import TypeAlias as TypeAlias + from typing_extensions import TypeGuard as TypeGuard # noqa: F401 + from typing_extensions import TypeAlias as TypeAlias # noqa: F401 if typing.TYPE_CHECKING or compat.py38: from typing import SupportsIndex as SupportsIndex else: - from typing_extensions import SupportsIndex as SupportsIndex + from typing_extensions import SupportsIndex as SupportsIndex # noqa: F401 if typing.TYPE_CHECKING or compat.py310: from typing import Annotated as Annotated |