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/ddl.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/ddl.py')
-rw-r--r-- | lib/sqlalchemy/sql/ddl.py | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/lib/sqlalchemy/sql/ddl.py b/lib/sqlalchemy/sql/ddl.py index f21b3d7f0..f247fa782 100644 --- a/lib/sqlalchemy/sql/ddl.py +++ b/lib/sqlalchemy/sql/ddl.py @@ -10,12 +10,15 @@ to invoke them for a create/drop call. """ -from .. import util +from .base import _bind_or_error +from .base import _generative +from .base import Executable +from .base import SchemaVisitor from .elements import ClauseElement -from .base import Executable, _generative, SchemaVisitor, _bind_or_error -from ..util import topological from .. import event from .. import exc +from .. import util +from ..util import topological class _DDLCompiles(ClauseElement): @@ -168,7 +171,7 @@ class DDLElement(Executable, _DDLCompiles): DDL('something').execute_if(dialect=('postgresql', 'mysql')) - :param callable_: A callable, which will be invoked with + :param callable\_: A callable, which will be invoked with four positional arguments as well as optional keyword arguments: @@ -815,10 +818,13 @@ class SchemaGenerator(DDLBase): include_foreign_key_constraints = None self.connection.execute( + # fmt: off CreateTable( table, - include_foreign_key_constraints=include_foreign_key_constraints, + include_foreign_key_constraints= # noqa + include_foreign_key_constraints, ) + # fmt: on ) if hasattr(table, "indexes"): |