diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2019-01-06 01:19:47 -0500 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2019-01-06 18:23:11 -0500 |
commit | 1e278de4cc9a4181e0747640a960e80efcea1ca9 (patch) | |
tree | 13d0c035807613bfa07e734acad79b9c843cb8b0 /lib/sqlalchemy/sql/functions.py | |
parent | 1e1a38e7801f410f244e4bbb44ec795ae152e04e (diff) | |
download | sqlalchemy-1e278de4cc9a4181e0747640a960e80efcea1ca9.tar.gz |
Post black reformatting
Applied on top of a pure run of black -l 79 in
I7eda77fed3d8e73df84b3651fd6cfcfe858d4dc9, this set of changes
resolves all remaining flake8 conditions for those codes
we have enabled in setup.cfg.
Included are resolutions for all remaining flake8 issues
including shadowed builtins, long lines, import order, unused
imports, duplicate imports, and docstring issues.
Change-Id: I4f72d3ba1380dd601610ff80b8fb06a2aff8b0fe
Diffstat (limited to 'lib/sqlalchemy/sql/functions.py')
-rw-r--r-- | lib/sqlalchemy/sql/functions.py | 56 |
1 files changed, 30 insertions, 26 deletions
diff --git a/lib/sqlalchemy/sql/functions.py b/lib/sqlalchemy/sql/functions.py index 883bb8cc3..e191cff15 100644 --- a/lib/sqlalchemy/sql/functions.py +++ b/lib/sqlalchemy/sql/functions.py @@ -8,30 +8,33 @@ """SQL function API, factories, and built-in functions. """ -from . import sqltypes, schema -from .base import Executable, ColumnCollection -from .elements import ( - ClauseList, - Cast, - Extract, - _literal_as_binds, - literal_column, - _type_from_args, - ColumnElement, - _clone, - Over, - BindParameter, - FunctionFilter, - Grouping, - WithinGroup, - BinaryExpression, -) -from .selectable import FromClause, Select, Alias -from . import util as sqlutil +from . import annotation from . import operators +from . import schema +from . import sqltypes +from . import util as sqlutil +from .base import ColumnCollection +from .base import Executable +from .elements import _clone +from .elements import _literal_as_binds +from .elements import _type_from_args +from .elements import BinaryExpression +from .elements import BindParameter +from .elements import Cast +from .elements import ClauseList +from .elements import ColumnElement +from .elements import Extract +from .elements import FunctionFilter +from .elements import Grouping +from .elements import literal_column +from .elements import Over +from .elements import WithinGroup +from .selectable import Alias +from .selectable import FromClause +from .selectable import Select from .visitors import VisitableType from .. import util -from . import annotation + _registry = util.defaultdict(dict) @@ -718,19 +721,19 @@ class coalesce(ReturnTypeFromArgs): _has_args = True -class max(ReturnTypeFromArgs): +class max(ReturnTypeFromArgs): # noqa pass -class min(ReturnTypeFromArgs): +class min(ReturnTypeFromArgs): # noqa pass -class sum(ReturnTypeFromArgs): +class sum(ReturnTypeFromArgs): # noqa pass -class now(GenericFunction): +class now(GenericFunction): # noqa type = sqltypes.DateTime @@ -813,7 +816,8 @@ class array_agg(GenericFunction): .. seealso:: :func:`.postgresql.array_agg` - PostgreSQL-specific version that - returns :class:`.postgresql.ARRAY`, which has PG-specific operators added. + returns :class:`.postgresql.ARRAY`, which has PG-specific operators + added. """ |