From 5efde68c998f9922552508afd1894022b3377f5d Mon Sep 17 00:00:00 2001 From: Jamie Alessio Date: Tue, 14 Mar 2017 19:02:38 -0700 Subject: [PATCH] Fix typos ('expicit' -> 'explicit') (cherry picked from commit 3771af0af45c2a7ea79a055b953c32f23c53e256) --- doc/build/core/constraints.rst | 2 +- lib/sqlalchemy/sql/schema.py | 4 ++-- test/sql/test_insert_exec.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/build/core/constraints.rst b/doc/build/core/constraints.rst index c7febea2b5..d0cfdf98d0 100644 --- a/doc/build/core/constraints.rst +++ b/doc/build/core/constraints.rst @@ -415,7 +415,7 @@ produced inline with the table definition, the database usually has a system in place in which names are automatically assigned to these constraints, if a name is not otherwise specified. When an existing database table is altered in a database using a command such as ``ALTER TABLE``, this command typically -needs to specify expicit names for new constraints as well as be able to +needs to specify explicit names for new constraints as well as be able to specify the name of an existing constraint that is to be dropped or modified. Constraints can be named explicitly using the :paramref:`.Constraint.name` parameter, diff --git a/lib/sqlalchemy/sql/schema.py b/lib/sqlalchemy/sql/schema.py index 08ddff0e1e..9f4687d729 100644 --- a/lib/sqlalchemy/sql/schema.py +++ b/lib/sqlalchemy/sql/schema.py @@ -176,7 +176,7 @@ class Table(DialectKWArgs, SchemaItem, TableClause): is set in which case it defaults to True; :class:`.Column` objects for this table should be reflected from the database, possibly augmenting or replacing existing :class:`.Column` objects that were - expicitly specified. + explicitly specified. .. versionchanged:: 1.0.0 setting the :paramref:`.Table.autoload_with` parameter implies that :paramref:`.Table.autoload` will default @@ -3452,7 +3452,7 @@ class MetaData(SchemaItem): present, the :class:`.Constraint` object's existing name will be replaced with one that is composed from template string that uses this token. When this token is present, it is required that - the :class:`.Constraint` is given an expicit name ahead of time. + the :class:`.Constraint` is given an explicit name ahead of time. * user-defined: any additional token may be implemented by passing it along with a ``fn(constraint, table)`` callable to the diff --git a/test/sql/test_insert_exec.py b/test/sql/test_insert_exec.py index c49947425e..6015f4e747 100644 --- a/test/sql/test_insert_exec.py +++ b/test/sql/test_insert_exec.py @@ -328,7 +328,7 @@ class TableInsertTest(fixtures.TablesTest): data) @testing.requires.sequences - def test_expicit_sequence(self): + def test_explicit_sequence(self): t = self._fixture() self._test( t.insert().values( -- 2.47.2