]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
Fix typos
authorMin ho Kim <minho42@gmail.com>
Sun, 21 Jul 2019 00:51:29 +0000 (10:51 +1000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sun, 21 Jul 2019 20:30:31 +0000 (16:30 -0400)
(cherry picked from commit 7e588aadaab27a53b226a4637be9b4022ab46956)

Change-Id: Ibd2fbf365ed2b8f0d1765ef7271d28ab3a2d073a

23 files changed:
doc/build/changelog/changelog_13.rst
doc/build/changelog/migration_06.rst
doc/build/changelog/migration_13.rst
doc/build/changelog/unreleased_13/4624.rst
doc/build/core/tutorial.rst
doc/build/orm/extensions/associationproxy.rst
doc/build/orm/inheritance.rst
doc/build/orm/loading_relationships.rst
examples/space_invaders/space_invaders.py
examples/versioned_history/history_meta.py
lib/sqlalchemy/orm/persistence.py
lib/sqlalchemy/orm/relationships.py
lib/sqlalchemy/orm/strategies.py
lib/sqlalchemy/orm/strategy_options.py
lib/sqlalchemy/sql/compiler.py
lib/sqlalchemy/sql/schema.py
lib/sqlalchemy/sql/sqltypes.py
test/aaa_profiling/test_memusage.py
test/dialect/mssql/test_types.py
test/orm/test_froms.py
test/orm/test_relationships.py
test/orm/test_unitofwork.py
test/sql/test_insert_exec.py

index 384e8b348ae8ff9fa8a3d019283b08bfc0787d55..55ec00f630a011ae8e09eec2fbd6a625e7a36da0 100644 (file)
@@ -33,7 +33,7 @@
         two levels deep, in conjunction with modification to primary key values,
         where those primary key columns are also linked together in a foreign key
         relationship as is typical for joined table inheritance.  The intermediary
-        table in a  three-level inheritance hierachy will now get its UPDATE if
+        table in a  three-level inheritance hierarchy will now get its UPDATE if
         only the primary key value has changed and passive_updates=False (e.g.
         foreign key constraints not being enforced), whereas before it would be
         skipped; similarly, with passive_updates=True (e.g. ON UPDATE  CASCADE in
         hybrid attributes when they made use of the ``@hybrid_property.expression``
         decorator to return an alternate SQL expression, or when the hybrid
         returned an arbitrary :class:`.PropComparator`, at the expression level.
-        This involved futher generalization of the heuristics used to detect the
+        This involved further generalization of the heuristics used to detect the
         type of object being proxied at the level of :class:`.QueryableAttribute`,
         to better detect if the descriptor ultimately serves mapped classes or
         column expressions.
        :tickets: 4446
 
        Fixed issue in association proxy due to :ticket:`3423` which caused the use
-       of custom :class:`.PropComparator` objects with hybrid attribites, such as
+       of custom :class:`.PropComparator` objects with hybrid attributes, such as
        the one demonstrated in  the ``dictlike-polymorphic`` example to not
        function within an association proxy.  The strictness that was added in
-       :ticket:`3423` has been relaxed, and additional logic to accomodate for
+       :ticket:`3423` has been relaxed, and additional logic to accommodate for
        an association proxy that links to a custom hybrid have been added.
 
     .. change::
 
        Reworked :class:`.AssociationProxy` to store state that's specific to a
        parent class in a separate object, so that a single
-       :class:`.AssocationProxy` can serve for multiple parent classes, as is
+       :class:`.AssociationProxy` can serve for multiple parent classes, as is
        intrinsic to inheritance, without any ambiguity in the state returned by it.
        A new method :meth:`.AssociationProxy.for_class` is added to allow
        inspection of class-specific state.
         Fixed bug where declarative would not update the state of the
         :class:`.Mapper` as far as what attributes were present, when additional
         attributes were added or removed after the mapper attribute collections had
-        already been called and memoized.  Addtionally, a ``NotImplementedError``
+        already been called and memoized.  Additionally, a ``NotImplementedError``
         is now raised if a fully mapped attribute (e.g. column, relationship, etc.)
         is deleted from a class that is currently mapped, since the mapper will not
         function correctly if the attribute has been removed.
index 28a74b9e8f053fe9621730b8ba3305fc2e866551..7024f25b695664fdb6a38cc8fe399a71a01663ac 100644 (file)
@@ -640,7 +640,7 @@ feature can be disabled by specifying
 Type System Changes
 ===================
 
-New Archicture
+New Architecture
 --------------
 
 The type system has been completely reworked behind the
index 15e67fdd51b3f261902f322e6d0ceab698e385af..b749f56230bc76cb83307d87b6c1d04c3ca0de97 100644 (file)
@@ -419,7 +419,7 @@ Given a mapping as::
         a_id = Column(Integer, ForeignKey(A.id), primary_key=True)
         b_id = Column(Integer, ForeignKey(B.id), primary_key=True)
 
-An assigment to ``A.b`` will generate an ``AB`` object::
+An assignment to ``A.b`` will generate an ``AB`` object::
 
     a.b = B()
 
index 4e8fc4921fed8d581c081d136807073455a9c8aa..bd9236a2ef4c71d700fa08f67fe4d2fd8c4549a5 100644 (file)
@@ -5,6 +5,6 @@
    Enhanced MySQL/MariaDB version string parsing to accommodate for exotic
    MariaDB version strings where the "MariaDB" word is embedded among other
    alphanumeric characters such as "MariaDBV1".   This detection is critical in
-   order to correctly accomodate for API features that have split between MySQL
+   order to correctly accommodate for API features that have split between MySQL
    and MariaDB such as the "transaction_isolation" system variable.
 
index cc7ce5463a641ce035e46098acc0248770d73107..d9a0dfd30896f4f24733fd0987cdaed27a1357a3 100644 (file)
@@ -1520,7 +1520,7 @@ another function :func:`.type_coerce` which is closely related to
 :func:`.cast`, in that it sets up a Python expression as having a specific SQL
 database type, but does not render the ``CAST`` keyword or datatype on the
 database side.    :func:`.type_coerce` is particularly important when dealing
-with the :class:`.types.JSON` datatype, which typicaly has an intricate
+with the :class:`.types.JSON` datatype, which typically has an intricate
 relationship with string-oriented datatypes on different platforms and
 may not even be an explicit datatype, such as on SQLite and MariaDB.
 Below, we use :func:`.type_coerce` to deliver a Python structure as a JSON
index 5670a787df3e10512dd78cfadb007bad97b4256e..8e699efa96150643ac2bd83d6b0cada17fb7cdf7 100644 (file)
@@ -524,7 +524,7 @@ Given a mapping as::
         a_id = Column(Integer, ForeignKey(A.id), primary_key=True)
         b_id = Column(Integer, ForeignKey(B.id), primary_key=True)
 
-An assigment to ``A.b`` will generate an ``AB`` object::
+An assignment to ``A.b`` will generate an ``AB`` object::
 
     a.b = B()
 
index cd796f7a77788d79eb3c9dc2bc45159a8017c8fb..c8f372e285cac53fab85d0d8195648e1a8a89eb9 100644 (file)
@@ -730,7 +730,7 @@ the :paramref:`.mapper.with_polymorphic` parameter::
             'polymorphic_identity': 'manager',
             'concrete': True}
 
-Alternatvely, the same :class:`.Table` objects can be used in
+Alternatively, the same :class:`.Table` objects can be used in
 fully "classical" style, without using Declarative at all.
 A constructor similar to that supplied by Declarative is illustrated::
 
index 5acdeaf14552a08e4a24d714b1fae27bf638f9db..cf64833e6016814785e2b7aa3c4cb7adb885a844 100644 (file)
@@ -72,7 +72,7 @@ Configuring Loader Strategies at Mapping Time
 
 The loader strategy for a particular relationship can be configured
 at mapping time to take place in all cases where an object of the mapped
-type is loaded, in the absense of any query-level options that modify it.
+type is loaded, in the absence of any query-level options that modify it.
 This is configured using the :paramref:`.relationship.lazy` parameter to
 :func:`.relationship`; common values for this parameter
 include ``select``, ``joined``, ``subquery`` and ``selectin``.
index 34d233da183c1e9fa715a2bb0f072857db76d3c5..ed6c47abc009678418abd51373bd493b73c5aa87 100644 (file)
@@ -656,14 +656,14 @@ def move_missile(session, window, state):
     )
     missile.blank(window)
     if glyph or missile.top_bound:
-        # missle is done
+        # missile is done
         session.delete(missile)
         state["missile"] = None
         if glyph:
             # score!
             score(session, window, state, glyph)
     else:
-        # move missle up one character.
+        # move missile up one character.
         missile.y -= 1
 
 
index 2a331443d7cc105141b6f883eba260b0ab6d23de..22b019bd7090db521cd74d979ee57df32ebf1cf7 100644 (file)
@@ -182,7 +182,7 @@ class Versioned(object):
 
     __table_args__ = {"sqlite_autoincrement": True}
     """Use sqlite_autoincrement, to ensure unique integer values
-    are used for new rows even for rows taht have been deleted."""
+    are used for new rows even for rows that have been deleted."""
 
 
 def versioned_objects(iter_):
index 1973f5fda9d649647900f8ce48138054077699a5..e837e46001b25051f150d3970e34a8cf630cf187 100644 (file)
@@ -736,7 +736,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,
index b40fad332bfa418944f3c87a97f93c7e776df88b..ccb0efe606726abf555ec75f02c3fc9c851a4c05 100644 (file)
@@ -1662,7 +1662,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)
 
index f274bfdc6e034e964f0810230af6f7b881441b98..a95099a7432d6a403a9df296b5ad73051cc72a26 100644 (file)
@@ -2295,7 +2295,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))
index 980fb3e73452caca78391d2e07c81354ca77b351..178342d227893fef813d913c960ff5d1ddbfa19e 100644 (file)
@@ -242,7 +242,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]
             ):
index 29376a59c8a446828be4a53f64b313b1be76512a..b94857fed73d14bafc72ed8d27281a00fe489608 100644 (file)
@@ -3463,7 +3463,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
index 58f92d2ea2ce3756e05c5aea9836bcd2faa2ed21..c150b9512983162f30462b36bcd66469ebb77238 100644 (file)
@@ -3792,7 +3792,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
index 1a7e81f113e9509f7e067c125fd3bf8462bf02d5..614201c35c266a4741a5d2137e7737dce93edc37 100644 (file)
@@ -47,7 +47,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.
 
     """
index d172c4a87d0fbd2be64a69f01600ebaafbd8823b..7368bc5a7e0d5d07aa124416473d916d712fd284 100644 (file)
@@ -958,7 +958,7 @@ class MemUsageWBackendTest(EnsureZeroed):
 
         go()
 
-    # fails on newer versions of pysqlite due to unusual memory behvior
+    # fails on newer versions of pysqlite due to unusual memory behavior
     # in pysqlite itself. background at:
     # http://thread.gmane.org/gmane.comp.python.db.pysqlite.user/2290
 
index 54dd6876a4edd0daf92c2ea0aaf49290fec6987f..f88eb928ca8ed753d8345738774f0dfe4563f55e 100644 (file)
@@ -560,7 +560,7 @@ class TypeRoundTripTest(
                 "1234.58965E-2",
                 "1.521E+15",
                 # previously, these were at -1E-25, which were inserted
-                # cleanly howver we only got back 20 digits of accuracy.
+                # cleanly however we only got back 20 digits of accuracy.
                 # pyodbc as of 4.0.22 now disallows the silent truncation.
                 "-1E-20",
                 "1E-20",
index 1cccfff2684e3646c8a8b4ee05ec85d9d61725e9..76cb4f6db6e24251e81dd3922c88aa1910312685 100644 (file)
@@ -2461,7 +2461,7 @@ class MixedEntitiesTest(QueryTest, AssertsCompiledSQL):
             "WHERE addresses.email_address > :email_address_1",
         )
 
-        # second, 'email_address' matches up to the aggreagte, and we get a
+        # second, 'email_address' matches up to the aggregate, and we get a
         # smooth JOIN from users->subquery and that's it
         self.assert_compile(
             sess.query(User, ag2.email_address)
index 1e7ebf48cd67ecf50b84043854963d48dba98f40..0767fbf1c65fb8d02e7d709607bdff389f7a59b1 100644 (file)
@@ -744,7 +744,7 @@ class OverlappingFksSiblingTest(fixtures.TestBase):
         bsub2.a = a2
 
         session.commit()
-        assert bsub1.a is a2  # beacuse bsub1.a_member is not a relationship
+        assert bsub1.a is a2  # because bsub1.a_member is not a relationship
         assert bsub2.a is a1  # because bsub2.a is viewonly=True
 
         # everyone has a B.a relationship
index f23a934e1e86847066351951b6362b79c8c7ad45..13c5907a4f03b6ee0519ed8188c73e94dd6d02cb 100644 (file)
@@ -1132,7 +1132,7 @@ class DefaultTest(fixtures.MappedTest):
         eq_(h3.hoho, althohoval)
 
         def go():
-            # test deferred load of attribues, one select per instance
+            # test deferred load of attributes, one select per instance
             self.assert_(h2.hoho == h4.hoho == h5.hoho == hohoval)
 
         self.sql_count_(3, go)
index 7905dc4bc915252ba607c44bd188b2cc732b9fb9..85cdeca4b2f1a66e715e08694a9605b33b8f9964 100644 (file)
@@ -263,7 +263,7 @@ class InsertExecTest(fixtures.TablesTest):
         eq_(r.inserted_primary_key, [0])
 
     @testing.fails_on(
-        "sqlite", "sqlite autoincremnt doesn't work with composite pks"
+        "sqlite", "sqlite autoincrement doesn't work with composite pks"
     )
     @testing.provide_metadata
     def test_misordered_lastrow(self):