summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/sql
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2022-05-14 11:13:50 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2022-05-14 12:28:01 -0400
commit9f0db34563a05a7b9f6e09110d35ce0d0f36d3a9 (patch)
treeab407bbcba270696fe7798b043f4521320e19c06 /lib/sqlalchemy/sql
parentcd628fad7c92f5f54bf1bf6985fd983269b0ec19 (diff)
downloadsqlalchemy-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/sql')
-rw-r--r--lib/sqlalchemy/sql/_elements_constructors.py1
-rw-r--r--lib/sqlalchemy/sql/_selectable_constructors.py1
-rw-r--r--lib/sqlalchemy/sql/crud.py1
-rw-r--r--lib/sqlalchemy/sql/dml.py1
-rw-r--r--lib/sqlalchemy/sql/lambdas.py1
-rw-r--r--lib/sqlalchemy/sql/schema.py1
-rw-r--r--lib/sqlalchemy/sql/selectable.py7
-rw-r--r--lib/sqlalchemy/sql/type_api.py12
-rw-r--r--lib/sqlalchemy/sql/util.py10
-rw-r--r--lib/sqlalchemy/sql/visitors.py8
10 files changed, 17 insertions, 26 deletions
diff --git a/lib/sqlalchemy/sql/_elements_constructors.py b/lib/sqlalchemy/sql/_elements_constructors.py
index 0eaeae66e..8aa8f12cc 100644
--- a/lib/sqlalchemy/sql/_elements_constructors.py
+++ b/lib/sqlalchemy/sql/_elements_constructors.py
@@ -51,7 +51,6 @@ if typing.TYPE_CHECKING:
from ._typing import _ColumnExpressionOrLiteralArgument
from ._typing import _TypeEngineArgument
from .elements import BinaryExpression
- from .functions import FunctionElement
from .selectable import FromClause
from .type_api import TypeEngine
diff --git a/lib/sqlalchemy/sql/_selectable_constructors.py b/lib/sqlalchemy/sql/_selectable_constructors.py
index f89e8f578..ea824d622 100644
--- a/lib/sqlalchemy/sql/_selectable_constructors.py
+++ b/lib/sqlalchemy/sql/_selectable_constructors.py
@@ -34,7 +34,6 @@ from .selectable import TableSample
from .selectable import Values
if TYPE_CHECKING:
- from ._typing import _ColumnsClauseArgument
from ._typing import _FromClauseArgument
from ._typing import _OnClauseArgument
from ._typing import _SelectStatementForCompoundArgument
diff --git a/lib/sqlalchemy/sql/crud.py b/lib/sqlalchemy/sql/crud.py
index 6a5785043..b0cb3cbf8 100644
--- a/lib/sqlalchemy/sql/crud.py
+++ b/lib/sqlalchemy/sql/crud.py
@@ -48,7 +48,6 @@ if TYPE_CHECKING:
from .dml import ValuesBase
from .elements import ColumnElement
from .schema import _SQLExprDefault
- from .selectable import TableClause
REQUIRED = util.symbol(
"REQUIRED",
diff --git a/lib/sqlalchemy/sql/dml.py b/lib/sqlalchemy/sql/dml.py
index e0f162fc8..f063cf781 100644
--- a/lib/sqlalchemy/sql/dml.py
+++ b/lib/sqlalchemy/sql/dml.py
@@ -83,7 +83,6 @@ if TYPE_CHECKING:
from ._typing import _TypedColumnClauseArgument as _TCCA # noqa
from .base import ReadOnlyColumnCollection
from .compiler import SQLCompiler
- from .elements import ColumnElement
from .elements import KeyedColumnElement
from .selectable import _ColumnsClauseElement
from .selectable import _SelectIterable
diff --git a/lib/sqlalchemy/sql/lambdas.py b/lib/sqlalchemy/sql/lambdas.py
index 608da7104..3e82a9a6a 100644
--- a/lib/sqlalchemy/sql/lambdas.py
+++ b/lib/sqlalchemy/sql/lambdas.py
@@ -47,7 +47,6 @@ from ..util.typing import Protocol
from ..util.typing import Self
if TYPE_CHECKING:
- from .cache_key import CacheConst
from .elements import BindParameter
from .elements import ClauseElement
from .roles import SQLRole
diff --git a/lib/sqlalchemy/sql/schema.py b/lib/sqlalchemy/sql/schema.py
index 27456d2be..472979952 100644
--- a/lib/sqlalchemy/sql/schema.py
+++ b/lib/sqlalchemy/sql/schema.py
@@ -86,7 +86,6 @@ if typing.TYPE_CHECKING:
from ._typing import _InfoType
from ._typing import _TextCoercedExpressionArgument
from ._typing import _TypeEngineArgument
- from .base import DedupeColumnCollection
from .base import ReadOnlyColumnCollection
from .compiler import DDLCompiler
from .elements import BindParameter
diff --git a/lib/sqlalchemy/sql/selectable.py b/lib/sqlalchemy/sql/selectable.py
index dab25965b..d0b0f1476 100644
--- a/lib/sqlalchemy/sql/selectable.py
+++ b/lib/sqlalchemy/sql/selectable.py
@@ -5030,13 +5030,6 @@ class Select(
:func:`_sql.select` function.
"""
- things = [
- coercions.expect(
- roles.ColumnsClauseRole, ent, apply_propagate_attrs=self
- )
- for ent in entities
- ]
-
self._raw_columns = [
coercions.expect(
roles.ColumnsClauseRole, ent, apply_propagate_attrs=self
diff --git a/lib/sqlalchemy/sql/type_api.py b/lib/sqlalchemy/sql/type_api.py
index d7f5f8f9a..b9847d406 100644
--- a/lib/sqlalchemy/sql/type_api.py
+++ b/lib/sqlalchemy/sql/type_api.py
@@ -45,13 +45,13 @@ if typing.TYPE_CHECKING:
from .elements import ColumnElement
from .operators import OperatorType
from .sqltypes import _resolve_value_to_type as _resolve_value_to_type
- from .sqltypes import BOOLEANTYPE as BOOLEANTYPE
- from .sqltypes import INDEXABLE as INDEXABLE
- from .sqltypes import INTEGERTYPE as INTEGERTYPE
- from .sqltypes import MATCHTYPE as MATCHTYPE
+ from .sqltypes import BOOLEANTYPE as BOOLEANTYPE # noqa: F401
+ from .sqltypes import INDEXABLE as INDEXABLE # noqa: F401
+ from .sqltypes import INTEGERTYPE as INTEGERTYPE # noqa: F401
+ from .sqltypes import MATCHTYPE as MATCHTYPE # noqa: F401
from .sqltypes import NULLTYPE as NULLTYPE
- from .sqltypes import STRINGTYPE as STRINGTYPE
- from .sqltypes import TABLEVALUE as TABLEVALUE
+ from .sqltypes import STRINGTYPE as STRINGTYPE # noqa: F401
+ from .sqltypes import TABLEVALUE as TABLEVALUE # noqa: F401
from ..engine.interfaces import Dialect
diff --git a/lib/sqlalchemy/sql/util.py b/lib/sqlalchemy/sql/util.py
index 2655adbdc..262689128 100644
--- a/lib/sqlalchemy/sql/util.py
+++ b/lib/sqlalchemy/sql/util.py
@@ -36,13 +36,13 @@ from . import operators
from . import roles
from . import visitors
from ._typing import is_text_clause
-from .annotation import _deep_annotate as _deep_annotate
-from .annotation import _deep_deannotate as _deep_deannotate
-from .annotation import _shallow_annotate as _shallow_annotate
+from .annotation import _deep_annotate as _deep_annotate # noqa: F401
+from .annotation import _deep_deannotate as _deep_deannotate # noqa: F401
+from .annotation import _shallow_annotate as _shallow_annotate # noqa: F401
from .base import _expand_cloned
from .base import _from_objects
-from .cache_key import HasCacheKey as HasCacheKey
-from .ddl import sort_tables as sort_tables
+from .cache_key import HasCacheKey as HasCacheKey # noqa: F401
+from .ddl import sort_tables as sort_tables # noqa: F401
from .elements import _find_columns as _find_columns
from .elements import _label_reference
from .elements import _textual_label_reference
diff --git a/lib/sqlalchemy/sql/visitors.py b/lib/sqlalchemy/sql/visitors.py
index 88586d834..217e2d2ab 100644
--- a/lib/sqlalchemy/sql/visitors.py
+++ b/lib/sqlalchemy/sql/visitors.py
@@ -46,8 +46,12 @@ if typing.TYPE_CHECKING or not HAS_CYEXTENSION:
from ._py_util import prefix_anon_map as prefix_anon_map
from ._py_util import cache_anon_map as anon_map
else:
- from sqlalchemy.cyextension.util import prefix_anon_map as prefix_anon_map
- from sqlalchemy.cyextension.util import cache_anon_map as anon_map
+ from sqlalchemy.cyextension.util import ( # noqa: F401,E501
+ prefix_anon_map as prefix_anon_map,
+ )
+ from sqlalchemy.cyextension.util import ( # noqa: F401,E501
+ cache_anon_map as anon_map,
+ )
__all__ = [