diff options
| author | Min ho Kim <minho42@gmail.com> | 2019-07-21 10:51:29 +1000 |
|---|---|---|
| committer | Min ho Kim <minho42@gmail.com> | 2019-07-21 10:51:29 +1000 |
| commit | 7e588aadaab27a53b226a4637be9b4022ab46956 (patch) | |
| tree | 9a38b84206b3ada32b2b8e9a53ec68515438a8a9 /lib/sqlalchemy | |
| parent | 463c488d8e52725d1bf48229a9110b850a70418b (diff) | |
| download | sqlalchemy-7e588aadaab27a53b226a4637be9b4022ab46956.tar.gz | |
Fix typos
Diffstat (limited to 'lib/sqlalchemy')
| -rw-r--r-- | lib/sqlalchemy/orm/collections.py | 2 | ||||
| -rw-r--r-- | lib/sqlalchemy/orm/persistence.py | 2 | ||||
| -rw-r--r-- | lib/sqlalchemy/orm/relationships.py | 2 | ||||
| -rw-r--r-- | lib/sqlalchemy/orm/strategies.py | 2 | ||||
| -rw-r--r-- | lib/sqlalchemy/orm/strategy_options.py | 2 | ||||
| -rw-r--r-- | lib/sqlalchemy/sql/compiler.py | 2 | ||||
| -rw-r--r-- | lib/sqlalchemy/sql/schema.py | 2 | ||||
| -rw-r--r-- | lib/sqlalchemy/sql/selectable.py | 2 | ||||
| -rw-r--r-- | lib/sqlalchemy/sql/sqltypes.py | 2 |
9 files changed, 9 insertions, 9 deletions
diff --git a/lib/sqlalchemy/orm/collections.py b/lib/sqlalchemy/orm/collections.py index 1f50c7b09..ae96a8c4d 100644 --- a/lib/sqlalchemy/orm/collections.py +++ b/lib/sqlalchemy/orm/collections.py @@ -656,7 +656,7 @@ class CollectionAdapter(object): def _set_empty(self, user_data): assert ( not self.empty - ), "This collection adapter is alreay in the 'empty' state" + ), "This collection adapter is already in the 'empty' state" self.empty = True self.owner_state._empty_collections[self._key] = user_data diff --git a/lib/sqlalchemy/orm/persistence.py b/lib/sqlalchemy/orm/persistence.py index 072d34f8c..fb25d2405 100644 --- a/lib/sqlalchemy/orm/persistence.py +++ b/lib/sqlalchemy/orm/persistence.py @@ -738,7 +738,7 @@ def _collect_update_commands( # have changed the primary key of the row; propagate this event to # other columns that expect to have been modified. this normally # occurs after the UPDATE is emitted however we invoke it here - # explicitly in the absense of our invoking an UPDATE + # explicitly in the absence of our invoking an UPDATE for m, equated_pairs in mapper._table_to_equated[table]: sync.populate( state, diff --git a/lib/sqlalchemy/orm/relationships.py b/lib/sqlalchemy/orm/relationships.py index 6b3107f59..46eec75eb 100644 --- a/lib/sqlalchemy/orm/relationships.py +++ b/lib/sqlalchemy/orm/relationships.py @@ -1665,7 +1665,7 @@ class RelationshipProperty(StrategizedProperty): # for a full merge, pre-load the destination collection, # so that individual _merge of each item pulls from identity # map for those already present. - # also assumes CollectionAttrbiuteImpl behavior of loading + # also assumes CollectionAttributeImpl behavior of loading # "old" list in any case dest_state.get_impl(self.key).get(dest_state, dest_dict) diff --git a/lib/sqlalchemy/orm/strategies.py b/lib/sqlalchemy/orm/strategies.py index 65e4e61d2..82f40ea3b 100644 --- a/lib/sqlalchemy/orm/strategies.py +++ b/lib/sqlalchemy/orm/strategies.py @@ -2294,7 +2294,7 @@ class SelectInLoader(AbstractRelationshipLoader, util.MemoizedSlots): if not query_info.load_with_join: # the Bundle we have in the "omit_join" case is against raw, non # annotated columns, so to ensure the Query knows its primary - # entity, we add it explictly. If we made the Bundle against + # entity, we add it explicitly. If we made the Bundle against # annotated columns, we hit a performance issue in this specific # case, which is detailed in issue #4347. q.add_criteria(lambda q: q.select_from(effective_entity)) diff --git a/lib/sqlalchemy/orm/strategy_options.py b/lib/sqlalchemy/orm/strategy_options.py index 5ae60e854..df7dd51a8 100644 --- a/lib/sqlalchemy/orm/strategy_options.py +++ b/lib/sqlalchemy/orm/strategy_options.py @@ -243,7 +243,7 @@ class Load(Generative, MapperOption): elif _is_mapped_class(attr): # TODO: this does not appear to be a valid codepath. "attr" # would never be a mapper. This block is present in 1.2 - # as well howver does not seem to be accessed in any tests. + # as well however does not seem to be accessed in any tests. if not orm_util._entity_corresponds_to_use_path_impl( attr.parent, path[-1] ): diff --git a/lib/sqlalchemy/sql/compiler.py b/lib/sqlalchemy/sql/compiler.py index 740abeb3d..400ac2749 100644 --- a/lib/sqlalchemy/sql/compiler.py +++ b/lib/sqlalchemy/sql/compiler.py @@ -3498,7 +3498,7 @@ class IdentifierPreparer(object): """keyword sequence filter. a filter for elements that are intended to represent keyword sequences, - such as "INITIALLY", "INTIALLY DEFERRED", etc. no special characters + such as "INITIALLY", "INITIALLY DEFERRED", etc. no special characters should be present. .. versionadded:: 1.3 diff --git a/lib/sqlalchemy/sql/schema.py b/lib/sqlalchemy/sql/schema.py index 23c58dc4e..c84e3ee21 100644 --- a/lib/sqlalchemy/sql/schema.py +++ b/lib/sqlalchemy/sql/schema.py @@ -3777,7 +3777,7 @@ class MetaData(SchemaItem): .. note:: - As refered above, the :paramref:`.MetaData.schema` parameter + As referred above, the :paramref:`.MetaData.schema` parameter only refers to the **default value** that will be applied to the :paramref:`.Table.schema` parameter of an incoming :class:`.Table` object. It does not refer to how the diff --git a/lib/sqlalchemy/sql/selectable.py b/lib/sqlalchemy/sql/selectable.py index 10643c9e4..03dbcd449 100644 --- a/lib/sqlalchemy/sql/selectable.py +++ b/lib/sqlalchemy/sql/selectable.py @@ -2976,7 +2976,7 @@ class CompoundSelect(GenerativeSelect): For a :class:`.CompoundSelect`, the :attr:`.CompoundSelect.selected_columns` attribute returns the selected - columns of the first SELECT statement contined within the series of + columns of the first SELECT statement contained within the series of statements within the set operation. .. versionadded:: 1.4 diff --git a/lib/sqlalchemy/sql/sqltypes.py b/lib/sqlalchemy/sql/sqltypes.py index 7c7f2ac52..38731fcbe 100644 --- a/lib/sqlalchemy/sql/sqltypes.py +++ b/lib/sqlalchemy/sql/sqltypes.py @@ -48,7 +48,7 @@ class _LookupExpressionAdapter(object): """Mixin expression adaptations based on lookup tables. - These rules are currenly used by the numeric, integer and date types + These rules are currently used by the numeric, integer and date types which have detailed cross-expression coercion rules. """ |
