summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/sql/elements.py
diff options
context:
space:
mode:
authormike bayer <mike_mp@zzzcomputing.com>2020-01-07 01:53:34 +0000
committerGerrit Code Review <gerrit@bbpush.zzzcomputing.com>2020-01-07 01:53:34 +0000
commit84cb9d1f0a3f91fb5e3d4ece78b9ef94d1e5d826 (patch)
tree29ac3a2c6afd6bf14c84358172c4de968ab06304 /lib/sqlalchemy/sql/elements.py
parent463a5f2e29ca28e53b5d19ac2b63acf39438ce87 (diff)
parent217948f5c79e03956de998af86fef77ebc3edb76 (diff)
downloadsqlalchemy-84cb9d1f0a3f91fb5e3d4ece78b9ef94d1e5d826.tar.gz
Merge "Enable F821"
Diffstat (limited to 'lib/sqlalchemy/sql/elements.py')
-rw-r--r--lib/sqlalchemy/sql/elements.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/sqlalchemy/sql/elements.py b/lib/sqlalchemy/sql/elements.py
index d94d91b16..422eb6220 100644
--- a/lib/sqlalchemy/sql/elements.py
+++ b/lib/sqlalchemy/sql/elements.py
@@ -43,6 +43,11 @@ from .. import exc
from .. import inspection
from .. import util
+if util.TYPE_CHECKING:
+ from typing import Any
+ from typing import Optional
+ from typing import Union
+
def collate(expression, collation):
"""Return the clause ``expression COLLATE collation``.
@@ -709,7 +714,7 @@ class ColumnElement(
_alt_names = ()
def self_group(self, against=None):
- # type: (Module, Module, Optional[Any]) -> ClauseEleent
+ # type: (Optional[Any]) -> ClauseElement
if (
against in (operators.and_, operators.or_, operators._asbool)
and self.type._type_affinity is type_api.BOOLEANTYPE._type_affinity