]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
Fix misprints in documentation and comments
authoraplatkouski <5857672+aplatkouski@users.noreply.github.com>
Thu, 11 Jun 2020 14:16:41 +0000 (17:16 +0300)
committeraplatkouski <5857672+aplatkouski@users.noreply.github.com>
Tue, 16 Jun 2020 18:26:54 +0000 (21:26 +0300)
Signed-off-by: aplatkouski <5857672+aplatkouski@users.noreply.github.com>
40 files changed:
doc/build/changelog/changelog_12.rst
doc/build/changelog/changelog_13.rst
doc/build/changelog/unreleased_13/5198.rst
doc/build/changelog/unreleased_13/5359.rst
doc/build/changelog/unreleased_14/4449.rst
doc/build/changelog/unreleased_14/4617_implicit_subquery.rst
doc/build/changelog/unreleased_14/4638.rst
doc/build/changelog/unreleased_14/4643.rst
doc/build/changelog/unreleased_14/4662.rst
doc/build/changelog/unreleased_14/4976.rst
doc/build/changelog/unreleased_14/5221.rst
doc/build/core/constraints.rst
doc/build/core/ddl.rst
doc/build/glossary.rst
doc/build/orm/backref.rst
doc/build/orm/inheritance_loading.rst
doc/build/orm/nonstandard_mappings.rst
doc/build/orm/session_transaction.rst
lib/sqlalchemy/dialects/mssql/provision.py
lib/sqlalchemy/dialects/oracle/cx_oracle.py
lib/sqlalchemy/engine/base.py
lib/sqlalchemy/engine/cursor.py
lib/sqlalchemy/engine/default.py
lib/sqlalchemy/engine/reflection.py
lib/sqlalchemy/event/api.py
lib/sqlalchemy/future/engine.py
lib/sqlalchemy/future/selectable.py
lib/sqlalchemy/orm/context.py
lib/sqlalchemy/orm/dynamic.py
lib/sqlalchemy/orm/instrumentation.py
lib/sqlalchemy/orm/loading.py
lib/sqlalchemy/orm/mapper.py
lib/sqlalchemy/orm/session.py
test/base/test_result.py
test/ext/test_automap.py
test/orm/test_assorted_eager.py
test/orm/test_bind.py
test/orm/test_deprecations.py
test/sql/test_compare.py
test/sql/test_deprecations.py

index 8c138bde8f5c127a4d25cedac363b04b0e3cb00c..38f6fd5fa565c55c8cf0aa6f6bd8510c1c221260 100644 (file)
         Fixed bug in cache key generation for baked queries which could cause a
         too-short cache key to be generated for the case of eager loads across
         subclasses.  This could in turn cause the eagerload query to be cached in
-        place of a non-eagerload query, or vice versa, for a polymorhic "selectin"
+        place of a non-eagerload query, or vice versa, for a polymorphic "selectin"
         load, or possibly for lazy loads or selectin loads as well.
 
     .. change::
index 0b58c24c3d8509d87368fa31e324370cd93353a5..50571deaaa3e0b772dcb03d1f40dda2d267a769c 100644 (file)
         Fixed issue where an :class:`.Index` that is deferred in being associated
         with a table, such as as when it contains a :class:`.Column` that is not
         associated with any :class:`.Table` yet,  would fail to attach correctly if
-        it also contained a non table-oriented expession.
+        it also contained a non table-oriented expression.
 
 
     .. change::
         :tags: bug, mysql
         :tickets: 5239
 
-        Fixed issue in MySQL dialect when connecting to a psuedo-MySQL database
+        Fixed issue in MySQL dialect when connecting to a pseudo-MySQL database
         such as that provided by ProxySQL, the up front check for isolation level
         when it returns no row will not prevent the dialect from continuing to
         connect. A warning is emitted that the isolation level could not be
index b19da1e08e0e4b4c6320273da36d3afbb652a4f4..e4bdd7a24fee8257c606d80ae4eb7289240153f6 100644 (file)
@@ -3,6 +3,6 @@
     :tickets: 5198
 
     Added a new parameter :paramref:`_orm.query_expression.default_expr` to the
-    :func:`_orm.query_expression` construct, which will be appled to queries
+    :func:`_orm.query_expression` construct, which will be applied to queries
     automatically if the :func:`_orm.with_expression` option is not used. Pull
     request courtesy Haoyu Sun.
\ No newline at end of file
index b5f690db8d14f7db66fc7d74552b881f77ebe631..06e5247b3e92eba1932c6194ecbbb885f7f572be 100644 (file)
@@ -4,5 +4,5 @@
 
     Fixed an issue where the ``is_disconnect`` function in the SQL Server
     pyodbc dialect was incorrectly reporting the disconnect state when the
-    exception messsage had a substring that matched a SQL Server ODBC error
+    exception message had a substring that matched a SQL Server ODBC error
     code.
\ No newline at end of file
index f010bf47f959f61d4f0e825f0e95d2eab3c68a01..8b9c4a32398398b5675ba5f362a8f4585c8e477e 100644 (file)
@@ -5,7 +5,7 @@
     Additional logic has been added such that certain SQL expressions which
     typically wrap a single database column will use the name of that column as
     their "anonymous label" name within a SELECT statement, potentially making
-    key-based lookups in result tuples more intutive.   The primary example of
+    key-based lookups in result tuples more intuitive.   The primary example of
     this is that of a CAST expression, e.g. ``CAST(table.colname AS INTEGER)``,
     which will export its default name as "colname", rather than the usual
     "anon_1" label, that is, ``CAST(table.colname AS INTEGER) AS colname``.
index a8bfad13836af30eafbce8c9355f9ea99fb426e3..6bce7e213d0ffe980e2f13807a1575ee1368ab08 100644 (file)
@@ -45,7 +45,7 @@
     :class:`_expression.SelectBase` (which is what's produced by :func:`_expression.select`) or
     :class:`_query.Query` object is passed directly to these functions and others,
     the ORM is typically coercing them to be a subquery by calling the
-    :meth:`_expression.SelectBase.alias` method automatically (which is now superceded by
+    :meth:`_expression.SelectBase.alias` method automatically (which is now superseded by
     the :meth:`_expression.SelectBase.subquery` method).   See the migration notes linked
     below for further details.
 
index 1a799cf91fe387ff24be4c4b914e8d2da0accf83..cc1cd5dd6ee0f572255cc85e97c855d9e23a0e2b 100644 (file)
@@ -4,6 +4,6 @@
 
     All long-deprecated "extension" classes have been removed, including
     MapperExtension, SessionExtension, PoolListener, ConnectionProxy,
-    AttributExtension.  These classes have been deprecated since version 0.7
+    AttributeExtension.  These classes have been deprecated since version 0.7
     long superseded by the event listener system.
 
index 50ad1edccbf721c3cdeb54a1b1f81baa047a256a..8910c2559bc4950ececaed3c84489cd7452d01d4 100644 (file)
@@ -25,7 +25,7 @@
    :tags: change, mysql
    :tickets: 4643
 
-   Remove deprecated dialect ``mysql+gaerdbms`` that has beed deprecated
+   Remove deprecated dialect ``mysql+gaerdbms`` that has been deprecated
    since version 1.0. Use the MySQLdb dialect directly.
 
    Remove deprecated parameter ``quoting`` from :class:`.mysql.ENUM`
index b297c9405e03ea1cba675a3bce74102ae06e5e3e..99469e88818283dfa367514477413f7a2ab44cdf 100644 (file)
@@ -7,7 +7,7 @@
     rather than throw a :class:`.FlushError`. The rationale is so that the
     flush will proceed and raise a :class:`.IntegrityError` instead, in the
     same way as if the existing object were not present in the identity map
-    already.   This helps with schemes that are uinsg the
+    already.   This helps with schemes that are using the
     :class:`.IntegrityError` as a means of catching whether or not a row
     already exists in the table.
 
index 2bba5989699e274a00433f0726f216bf5508da30..520e6b7f035ecba2f28ca84e9e5d32ece93893e0 100644 (file)
@@ -5,7 +5,7 @@
     Added support for use of the :class:`.Sequence` construct with MariaDB 10.3
     and greater, as this is now supported by this database.  The construct
     integrates with the :class:`_schema.Table` object in the same way that it does for
-    other databases like PostrgreSQL and Oracle; if is present on the integer
+    other databases like PostgreSQL and Oracle; if is present on the integer
     primary key "autoincrement" column, it is used to generate defaults.   For
     backwards compatibility, to support a :class:`_schema.Table` that has a
     :class:`.Sequence` on it to support sequence only databases like Oracle,
index 883f0029df5f8c9593241fe768d7b485de64fa18..869c58942cc0f7dc4a6b634bac87bb1c40867611 100644 (file)
@@ -6,8 +6,8 @@
     :func:`_expression.select` construct such that when a select statement
     is used in a subquery, repeated column names from different tables are now
     automatically labeled with a unique label name, without the need to use the
-    full "apply_labels()" feature that conbines tablename plus column name.
-    The disambigated labels are available as plain string keys in the .c
+    full "apply_labels()" feature that combines tablename plus column name.
+    The disambiguated labels are available as plain string keys in the .c
     collection of the subquery, and most importantly the feature allows an ORM
     :func:`_orm.aliased` construct against the combination of an entity and an
     arbitrary subquery to work correctly, targeting the correct columns despite
index 4abe7709d721457d60fe4bc23fa65c8987f976e3..3e1eaabad42c66d4de1b43aeeb60d28239743545 100644 (file)
@@ -249,7 +249,7 @@ like the following is generated::
 .. versionchanged:: 1.0.0 - The DDL system invoked by
    :meth:`_schema.MetaData.create_all`
    and :meth:`_schema.MetaData.drop_all` will now automatically resolve mutually
-   depdendent foreign keys between tables declared by
+   dependent foreign keys between tables declared by
    :class:`_schema.ForeignKeyConstraint` and :class:`_schema.ForeignKey` objects, without
    the need to explicitly set the :paramref:`_schema.ForeignKeyConstraint.use_alter`
    flag.
index f38dcf849c7880f2b7131864de614758137e3cba..30619a419a24706a1d5c802d9be1816846d72484 100644 (file)
@@ -140,7 +140,7 @@ provide DDL expressions. For example, to produce a ``CREATE TABLE`` statement:
 .. sourcecode:: python+sql
 
     from sqlalchemy.schema import CreateTable
-    with engine.connecT() as conn:
+    with engine.connect() as conn:
     {sql}    conn.execute(CreateTable(mytable))
     CREATE TABLE mytable (
         col1 INTEGER,
index b98210115395c166b129616a56bf61459be52472..31d470bdaee42d6c601b15ccea9dbdba40cf65f7 100644 (file)
@@ -12,7 +12,7 @@ Glossary
     relational
     relational algebra
 
-        An algrebraic system developed by Edgar F. Codd that is used for
+        An algebraic system developed by Edgar F. Codd that is used for
         modelling and querying the data stored in relational databases.
 
         .. seealso::
@@ -131,7 +131,7 @@ Glossary
        An acronym for **Data Manipulation Language**.  DML is the subset of
        SQL that relational databases use to *modify* the data in tables. DML
        typically refers to the three widely familiar statements of INSERT,
-       UPDATE and  DELETE, otherwise known as :term:`CRUD` (acronoym for "CReate,
+       UPDATE and  DELETE, otherwise known as :term:`CRUD` (acronym for "CReate,
        Update, Delete").
 
         .. seealso::
index 80b395930bf71ab69b67bf5f9ec3b0808688198c..65d19eb185c80edb1e38df0620f2678942dbbb36 100644 (file)
@@ -216,7 +216,7 @@ However, if we instead created a new ``Address`` object, and associated the
 In the above example, it is **not** as intuitive that the ``Address`` would
 automatically be added to the :class:`.Session`.  However, the backref behavior
 of ``Address.user`` indicates that the ``Address`` object is also appended to
-the ``User.addresses`` collection.  This in turn intiates a **cascade**
+the ``User.addresses`` collection.  This in turn initiates a **cascade**
 operation which indicates that this ``Address`` should be placed into the
 :class:`.Session` as a :term:`pending` object.
 
@@ -228,7 +228,7 @@ to False, as in::
     class User(Base):
         # ...
 
-        addresses = relationship("Address", back_populates="user", cascade_backefs=False)
+        addresses = relationship("Address", back_populates="user", cascade_backrefs=False)
 
 See the example in :ref:`backref_cascade` for further information.
 
index 7e5675c1467afcdf954037cca5b00b9ef393eec6..3ddff01cfbb5230c83dc3f9e26e062f575a50c16 100644 (file)
@@ -541,7 +541,7 @@ similarly to the following:
     WHERE employee.id IN (?) ORDER BY employee.id
     (1,)
 
-Combining "selectin" polymorhic loading with query-time
+Combining "selectin" polymorphic loading with query-time
 :func:`_orm.with_polymorphic` usage is also possible (though this is very
 outer-space stuff!); assuming the above mappings had no ``polymorphic_load``
 set up, we could get the same result as follows::
index 81679dd014da351aa0055ace8f0d46c7b9f7e9e7..387a3bf906dd90469bc66680977bfef63a79c55b 100644 (file)
@@ -189,7 +189,7 @@ at :ref:`relationship_aliased_class`.
 As far as the use case of a class that can actually be fully persisted
 to different tables under different scenarios, very early versions of
 SQLAlchemy offered a feature for this adapted from Hibernate, known
-as the "entity name" feature.  However, this use case became infeasable
+as the "entity name" feature.  However, this use case became infeasible
 within SQLAlchemy once the mapped class itself became the source of SQL
 expression construction; that is, the class' attributes themselves link
 directly to mapped table columns.   The feature was removed and replaced
index 233768f42b99e99c4b378577f762509a6d3108a7..06139e0c5593842f3a185cb87ad05378d80aaa5a 100644 (file)
@@ -403,7 +403,7 @@ has multiple binds or some other custom scheme for :meth:`.Session.get_bind`,
 we can pass additional arguments to :meth:`.Session.connection` in order to
 affect how the bind is procured::
 
-    sess = my_sesssionmaker()
+    sess = my_sessionmaker()
 
     # set up a transaction for the bind associated with
     # the User mapper
index 84b9e4194f6840a413a9237abc78b48cca4eff07..23c841da632b7e390ca7f48b14f9d98d197345bc 100644 (file)
@@ -40,7 +40,7 @@ def _mssql_drop_ignore(conn, ident):
         # for row in conn.exec_driver_sql(
         #     "select session_id from sys.dm_exec_sessions "
         #        "where database_id=db_id('%s')" % ident):
-        #    log.info("killing SQL server sesssion %s", row['session_id'])
+        #    log.info("killing SQL server session %s", row['session_id'])
         #    conn.exec_driver_sql("kill %s" % row['session_id'])
 
         conn.exec_driver_sql("drop database %s" % ident)
index 4aae059dd730ebde46c6c808d0cf785cdc83a5e6..651a6e6736ea1ef2b6d99026df0f9fa4a46e2677 100644 (file)
@@ -100,7 +100,7 @@ Unicode
 
 As is the case for all DBAPIs under Python 3, all strings are inherently
 Unicode strings.     Under Python 2, cx_Oracle also supports Python Unicode
-objects directly.    In all cases however, the driver requires an explcit
+objects directly.    In all cases however, the driver requires an explicit
 encoding configuration.
 
 Ensuring the Correct Client Encoding
index 81c0c9f580c5fcf4af2bdbbf4b316892a9e63b40..ffd3724625350fc2c9c167e4d46b02fb184ffcda 100644 (file)
@@ -1944,7 +1944,7 @@ class Transaction(object):
         "deactive", however leave this transaction object in place as far
         as the connection's state.
 
-        for a "real" transaction this should roll back the transction
+        for a "real" transaction this should roll back the transaction
         and ensure this transaction is no longer a reset agent.
 
         this is used for nesting of marker transactions where the marker
index abffe0d1f196d88d1a387c72008a974423e7166b..3c672020bd3f9b0b1762e595c61481d81eb365f1 100644 (file)
@@ -720,7 +720,7 @@ class LegacyCursorResultMetaData(CursorResultMetaData):
             if result is not None:
                 if result[MD_OBJECTS] is _UNPICKLED:
                     util.warn_deprecated(
-                        "Retreiving row values using Column objects from a "
+                        "Retrieving row values using Column objects from a "
                         "row that was unpickled is deprecated; adequate "
                         "state cannot be pickled for this to be efficient.   "
                         "This usage will raise KeyError in a future release.",
@@ -728,7 +728,7 @@ class LegacyCursorResultMetaData(CursorResultMetaData):
                     )
                 else:
                     util.warn_deprecated(
-                        "Retreiving row values using Column objects with only "
+                        "Retrieving row values using Column objects with only "
                         "matching names as keys is deprecated, and will raise "
                         "KeyError in a future release; only Column "
                         "objects that are explicitly part of the statement "
@@ -802,7 +802,7 @@ class ResultFetchStrategy(object):
 class NoCursorFetchStrategy(ResultFetchStrategy):
     """Cursor strategy for a result that has no open cursor.
 
-    There are two varities of this strategy, one for DQL and one for
+    There are two varieties of this strategy, one for DQL and one for
     DML (and also DDL), each of which represent a result that had a cursor
     but no longer has one.
 
index 4d516e97c573d86dafa36fa2584d9903b5e60950..bbb767290ec0145ba641d94dd070412ebe5c3ce4 100644 (file)
@@ -293,7 +293,7 @@ class DefaultDialect(interfaces.Dialect):
         """True if this dialect supports sane rowcount even if RETURNING is
         in use.
 
-        For dialects that don't support RETURNING, this is synomous
+        For dialects that don't support RETURNING, this is synonym
         with supports_sane_rowcount.
 
         """
index 344d5511d19c54242bb85cfa486f8efb83bf7d12..564a82c5a81fac090ab19fb958f0ece0d0fe1527 100644 (file)
@@ -433,7 +433,7 @@ class Inspector(object):
         * ``autoincrement`` - indicates that the column is auto incremented -
           this is returned as a boolean or 'auto'
 
-        * ``comment`` - (optional) the commnet on the column. Only some
+        * ``comment`` - (optional) the comment on the column. Only some
           dialects return this key
 
         * ``computed`` - (optional) when present it indicates that this column
index 9cff67033586bc03d5f993aed37662fd40261698..6bd63ceca6f9e74b571bce5ab85269fb64819c84 100644 (file)
@@ -67,7 +67,7 @@ def listen(target, identifier, fn, *args, **kw):
     .. warning:: The ``once`` argument does not imply automatic de-registration
        of the listener function after it has been invoked a first time; a
        listener entry will remain associated with the target object.
-       Associating an arbitrarily high number of listeners without explictitly
+       Associating an arbitrarily high number of listeners without explicitly
        removing them will cause memory to grow unbounded even if ``once=True``
        is specified.
 
@@ -134,7 +134,7 @@ def listens_for(target, identifier, *args, **kw):
     .. warning:: The ``once`` argument does not imply automatic de-registration
        of the listener function after it has been invoked a first time; a
        listener entry will remain associated with the target object.
-       Associating an arbitrarily high number of listeners without explictitly
+       Associating an arbitrarily high number of listeners without explicitly
        removing them will cause memory to grow unbounded even if ``once=True``
        is specified.
 
index d3b13b51077df1abe20a17d1a5a1f7c0636abdef..d5922daa3226d8746612b382706152375d1e6f61 100644 (file)
@@ -267,7 +267,7 @@ class Connection(_LegacyConnection):
          * :class:`_schema.DDL` and objects which inherit from
            :class:`_schema.DDLElement`
 
-        :param parameters: parameters which will be bound into the statment.
+        :param parameters: parameters which will be bound into the statement.
          This may be either a dictionary of parameter names to values,
          or a mutable sequence (e.g. a list) of dictionaries.  When a
          list of dictionaries is passed, the underlying statement execution
@@ -343,7 +343,7 @@ class Engine(_LegacyEngine):
         # they aren't calling "engine.begin()" explicitly, however, DDL
         # may be a special case for which we want to continue doing it this
         # way.  A big win here is that the full DDL sequence is inside of a
-        # single transaction rather than COMMIT for each statment.
+        # single transaction rather than COMMIT for each statement.
         with self.begin() as conn:
             conn._run_ddl_visitor(visitorcallable, element, **kwargs)
 
index ce609e7db7f02e658590cacab311008b512bf19c..473242bf83f18ac7c31b3d19f3bcd30166abea1f 100644 (file)
@@ -114,7 +114,7 @@ class Select(_LegacySelect):
 
     @_generative
     def join(self, target, onclause=None, isouter=False, full=False):
-        r"""Create a SQL JOIN against this :class:`_expresson.Select`
+        r"""Create a SQL JOIN against this :class:`_expression.Select`
         object's criterion
         and apply generatively, returning the newly resulting
         :class:`_expression.Select`.
@@ -132,7 +132,7 @@ class Select(_LegacySelect):
     def join_from(
         self, from_, target, onclause=None, isouter=False, full=False
     ):
-        r"""Create a SQL JOIN against this :class:`_expresson.Select`
+        r"""Create a SQL JOIN against this :class:`_expression.Select`
         object's criterion
         and apply generatively, returning the newly resulting
         :class:`_expression.Select`.
index 588b83571499db3762b654fec2618e7eae11d815..fe3afae3498a15e8247150bb36909e8db837cf52 100644 (file)
@@ -783,7 +783,7 @@ class ORMSelectCompileState(ORMCompileState, SelectState):
         if self.order_by:
             # the default coercion for ORDER BY is now the OrderByRole,
             # which adds an additional post coercion to ByOfRole in that
-            # elements are converted into label refernences.  For the
+            # elements are converted into label references.  For the
             # eager load / subquery wrapping case, we need to un-coerce
             # the original expressions outside of the label references
             # in order to have them render.
@@ -1412,7 +1412,7 @@ class ORMSelectCompileState(ORMCompileState, SelectState):
                     "from, there are multiple FROMS which can "
                     "join to this entity. Please use the .select_from() "
                     "method to establish an explicit left side, as well as "
-                    "providing an explcit ON clause if not present already to "
+                    "providing an explicit ON clause if not present already to "
                     "help resolve the ambiguity."
                 )
             else:
@@ -1420,7 +1420,7 @@ class ORMSelectCompileState(ORMCompileState, SelectState):
                     "Don't know how to join to %r. "
                     "Please use the .select_from() "
                     "method to establish an explicit left side, as well as "
-                    "providing an explcit ON clause if not present already to "
+                    "providing an explicit ON clause if not present already to "
                     "help resolve the ambiguity." % (right,)
                 )
 
@@ -1458,7 +1458,7 @@ class ORMSelectCompileState(ORMCompileState, SelectState):
                     "from, there are multiple FROMS which can "
                     "join to this entity. Please use the .select_from() "
                     "method to establish an explicit left side, as well as "
-                    "providing an explcit ON clause if not present already to "
+                    "providing an explicit ON clause if not present already to "
                     "help resolve the ambiguity."
                 )
             else:
@@ -1466,7 +1466,7 @@ class ORMSelectCompileState(ORMCompileState, SelectState):
                     "Don't know how to join to %r. "
                     "Please use the .select_from() "
                     "method to establish an explicit left side, as well as "
-                    "providing an explcit ON clause if not present already to "
+                    "providing an explicit ON clause if not present already to "
                     "help resolve the ambiguity." % (right,)
                 )
         else:
@@ -2450,7 +2450,7 @@ class _ORMColumnEntity(_ColumnEntity):
             column = column._deannotate()
 
         # use entity_zero as the from if we have it. this is necessary
-        # for polymorpic scenarios where our FROM is based on ORM entity,
+        # for polymorphic scenarios where our FROM is based on ORM entity,
         # not the FROM of the column.  but also, don't use it if our column
         # doesn't actually have any FROMs that line up, such as when its
         # a scalar subquery.
index adc976e32b2b4924e7ef29aba4f595e8d21baef1..d15127563ef2b9f5765ab1d2e12901fead255619 100644 (file)
@@ -274,7 +274,7 @@ class AppenderMixin(object):
             # this is a hack right now.  The Query only knows how to
             # make subsequent joins() without a given left-hand side
             # from self._from_obj[0].  We need to ensure prop.secondary
-            # is in the FROM.  So we purposly put the mapper selectable
+            # is in the FROM.  So we purposely put the mapper selectable
             # in _from_obj[0] to ensure a user-defined join() later on
             # doesn't fail, and secondary is then in _from_obj[1].
             self._from_obj = (prop.mapper.selectable, prop.secondary)
index e2f0c6a288da98f08dbd0a8b209bb06f2b3c7459..43e3801018a264dac09ed2e2ee4ab1bc9c879d0f 100644 (file)
@@ -229,7 +229,7 @@ class ClassManager(HasMemoized, dict):
         setattr(self.class_, self.MANAGER_ATTR, self)
 
     def dispose(self):
-        """Dissasociate this manager from its class."""
+        """Disassociate this manager from its class."""
 
         delattr(self.class_, self.MANAGER_ATTR)
 
@@ -493,7 +493,7 @@ class InstrumentationFactory(object):
 
 
 # this attribute is replaced by sqlalchemy.ext.instrumentation
-# when importred.
+# when imported.
 _instrumentation_factory = InstrumentationFactory()
 
 # these attributes are replaced by sqlalchemy.ext.instrumentation
index a33e1b77d5250f347c01ba2028af58f6082e56a1..abb8ce32d10a7a11ca310a4604e3ae371c77cc61 100644 (file)
@@ -657,7 +657,7 @@ def _instance_processor(
                             cached_populators,
                         )
             else:
-                # loader strategries like subqueryload, selectinload,
+                # loader strategies like subqueryload, selectinload,
                 # joinedload, basically relationships, these need to interact
                 # with the context each time to work correctly.
                 todo.append(prop)
@@ -1249,7 +1249,7 @@ def load_scalar_attributes(mapper, state, attribute_names, passive):
     # concrete inheritance, the class manager might have some keys
     # of attributes on the superclass that we didn't actually map.
     # These could be mapped as "concrete, dont load" or could be completely
-    # exluded from the mapping and we know nothing about them.  Filter them
+    # excluded from the mapping and we know nothing about them.  Filter them
     # here to prevent them from coming through.
     if attribute_names:
         attribute_names = attribute_names.intersection(mapper.attrs.keys())
index a4501a1e4bbb94f3d3e944d29a464d5e560edbf7..d86b76111cf4c919d451989e1afae8c53eea169d 100644 (file)
@@ -324,7 +324,7 @@ class Mapper(
           that specify ``delete-orphan`` cascade.  This behavior is more
           consistent with that of a persistent object, and allows behavior to
           be consistent in more scenarios independently of whether or not an
-          orphanable object has been flushed yet or not.
+          orphan object has been flushed yet or not.
 
           See the change note and example at :ref:`legacy_is_orphan_addition`
           for more detail on this change.
index 6a40926da8456333bc055a3260b7cf0d877d332d..2058cf718ae13993e322fc0cef44970ffea4d73e 100644 (file)
@@ -207,7 +207,7 @@ class ORMExecuteState(util.MemoizedSlots):
     def is_orm_statement(self):
         """return True if the operation is an ORM statement.
 
-        This indictes that the select(), update(), or delete() being
+        This indicates that the select(), update(), or delete() being
         invoked contains ORM entities as subjects.   For a statement
         that does not have ORM entities and instead refers only to
         :class:`.Table` metadata, it is invoked as a Core SQL statement
index ce0e7b945274c2a265bae3c49ed546d2af959441..bacf09d39d4a4c429584b10b66510afd2a04c86f 100644 (file)
@@ -427,7 +427,7 @@ class ResultTest(fixtures.TestBase):
         eq_(result.all(), [])
 
     def test_one_unique(self):
-        # assert that one() counts rows after uniquness has been applied.
+        # assert that one() counts rows after uniqueness has been applied.
         # this would raise if we didnt have unique
         result = self._fixture(data=[(1, 1, 1), (1, 1, 1)])
 
@@ -444,7 +444,7 @@ class ResultTest(fixtures.TestBase):
         assert_raises(exc.MultipleResultsFound, result.unique().one)
 
     def test_one_unique_mapping(self):
-        # assert that one() counts rows after uniquness has been applied.
+        # assert that one() counts rows after uniqueness has been applied.
         # this would raise if we didnt have unique
         result = self._fixture(data=[(1, 1, 1), (1, 1, 1)])
 
index 25c43f1730f6ed7c6c18516f5aa4974b0edbc0a4..b022f0357ded9bd6bccc139d6cb113c06737883d 100644 (file)
@@ -107,8 +107,8 @@ class AutomapTest(fixtures.MappedTest):
         """
         The underlying reflect call accepts an optional schema argument.
         This is for determining which database schema to load.
-        This test verifies that prepare can accept an optiona schema argument
-        and pass it to reflect.
+        This test verifies that prepare can accept an optional schema
+        argument and pass it to reflect.
         """
         Base = automap_base(metadata=self.metadata)
         engine_mock = Mock()
index df391771228f9b68c6a2b446109b7ef873612d5c..3da69c85999c20a9d49f7f8e03679887674f1c24 100644 (file)
@@ -1,6 +1,6 @@
 """Exercises for eager loading.
 
-Derived from mailing list-reported problems and trac tickets.
+Derived from mailing list-reported problems and track tickets.
 
 These are generally very old 0.1-era tests and at some point should
 be cleaned up and modernized.
index 8e6d73ca44019a390e2edfae4a95c7358d785e50..bef06c390bb86695eb77208ec80773213509ba34 100644 (file)
@@ -301,7 +301,7 @@ class BindIntegrationTest(_fixtures.FixtureTest):
         ),
         (
             lambda User: future_select(1).where(User.name == "ed"),
-            # no mapper for this one becuase the plugin is not "orm"
+            # no mapper for this one because the plugin is not "orm"
             lambda User: {"clause": mock.ANY},
             "e1",
         ),
index 2e19b94354039ae950186ff9cc34bee232cd66f1..4e9f50661ee17f2a57b158e685eee9ba25ffd4af 100644 (file)
@@ -1329,7 +1329,7 @@ class InstancesTest(QueryTest, AssertsCompiledSQL):
         def go():
             with testing.expect_deprecated(
                 r"Using the Query.instances\(\) method without a context",
-                "Retreiving row values using Column objects with only "
+                "Retrieving row values using Column objects with only "
                 "matching names",
             ):
                 result = list(
@@ -1442,7 +1442,7 @@ class InstancesTest(QueryTest, AssertsCompiledSQL):
                 r"Using the Query.instances\(\) method without a context",
                 r"Passing a string name for the 'alias' argument to "
                 r"'contains_eager\(\)` is deprecated",
-                "Retreiving row values using Column objects with only "
+                "Retrieving row values using Column objects with only "
                 "matching names",
             ):
                 result = list(
@@ -1512,7 +1512,7 @@ class InstancesTest(QueryTest, AssertsCompiledSQL):
                 r"Using the Query.instances\(\) method without a context",
                 r"Passing a string name for the 'alias' argument to "
                 r"'contains_eager\(\)` is deprecated",
-                "Retreiving row values using Column objects with only "
+                "Retrieving row values using Column objects with only "
                 "matching names",
             ):
                 result = list(
index 6aaafc716ac079f4a67f84015d1645678c829869..69441013467206041875d7d55c4f85a4a9e60695 100644 (file)
@@ -609,7 +609,7 @@ class CoreFixtures(object):
 
     dont_compare_values_fixtures = [
         lambda: (
-            # note the in_(...) all have different column names becuase
+            # note the in_(...) all have different column names because
             # otherwise all IN expressions would compare as equivalent
             column("x").in_(random_choices(range(10), k=3)),
             column("y").in_(
index 4f018fcc9f93dc81b3f160be7bc8c0ad0b3ae1f9..7bafc648288f35bfb17332126fbefaef013b376e 100644 (file)
@@ -802,7 +802,7 @@ class KeyTargetingTest(fixtures.TablesTest):
         not_in_(bar.c.content_type, row)
 
         with testing.expect_deprecated(
-            "Retreiving row values using Column objects "
+            "Retrieving row values using Column objects "
             "with only matching names"
         ):
             in_(sql.column("content_type"), row)
@@ -813,7 +813,7 @@ class KeyTargetingTest(fixtures.TablesTest):
         not_in_(content.c.type, row)
         not_in_(bar.c.content_type, row)
         with testing.expect_deprecated(
-            "Retreiving row values using Column objects "
+            "Retrieving row values using Column objects "
             "with only matching names"
         ):
             in_(sql.column("content_type"), row)
@@ -830,12 +830,12 @@ class KeyTargetingTest(fixtures.TablesTest):
         row = connection.execute(stmt).first()
 
         with testing.expect_deprecated(
-            "Retreiving row values using Column objects "
+            "Retrieving row values using Column objects "
             "with only matching names"
         ):
             in_(keyed2.c.a, row)
         with testing.expect_deprecated(
-            "Retreiving row values using Column objects "
+            "Retrieving row values using Column objects "
             "with only matching names"
         ):
             in_(keyed2.c.b, row)
@@ -848,12 +848,12 @@ class KeyTargetingTest(fixtures.TablesTest):
         row = connection.execute(stmt).first()
 
         with testing.expect_deprecated(
-            "Retreiving row values using Column objects "
+            "Retrieving row values using Column objects "
             "with only matching names"
         ):
             in_(a, row)
         with testing.expect_deprecated(
-            "Retreiving row values using Column objects "
+            "Retrieving row values using Column objects "
             "with only matching names"
         ):
             in_(b, row)
@@ -869,33 +869,33 @@ class KeyTargetingTest(fixtures.TablesTest):
         row = connection.execute(stmt).first()
 
         with testing.expect_deprecated(
-            "Retreiving row values using Column objects "
+            "Retrieving row values using Column objects "
             "with only matching names"
         ):
             in_(keyed2.c.a, row)
         with testing.expect_deprecated(
-            "Retreiving row values using Column objects "
+            "Retrieving row values using Column objects "
             "with only matching names"
         ):
             in_(keyed2.c.b, row)
         with testing.expect_deprecated(
-            "Retreiving row values using Column objects "
+            "Retrieving row values using Column objects "
             "with only matching names"
         ):
             in_(a, row)
         with testing.expect_deprecated(
-            "Retreiving row values using Column objects "
+            "Retrieving row values using Column objects "
             "with only matching names"
         ):
             in_(b, row)
         with testing.expect_deprecated(
-            "Retreiving row values using Column objects "
+            "Retrieving row values using Column objects "
             "with only matching names",
             "The SelectBase.c and SelectBase.columns",
         ):
             in_(stmt.c.a, row)
         with testing.expect_deprecated(
-            "Retreiving row values using Column objects "
+            "Retrieving row values using Column objects "
             "with only matching names",
             "The SelectBase.c and SelectBase.columns",
         ):
@@ -913,23 +913,23 @@ class KeyTargetingTest(fixtures.TablesTest):
         row = connection.execute(stmt).first()
 
         with testing.expect_deprecated(
-            "Retreiving row values using Column objects "
+            "Retrieving row values using Column objects "
             "with only matching names"
         ):
             in_(keyed2.c.a, row)
         with testing.expect_deprecated(
-            "Retreiving row values using Column objects "
+            "Retrieving row values using Column objects "
             "with only matching names"
         ):
             in_(keyed2.c.b, row)
         with testing.expect_deprecated(
-            "Retreiving row values using Column objects "
+            "Retrieving row values using Column objects "
             "with only matching names",
             "The SelectBase.c and SelectBase.columns",
         ):
             in_(stmt.c.keyed2_a, row)
         with testing.expect_deprecated(
-            "Retreiving row values using Column objects "
+            "Retrieving row values using Column objects "
             "with only matching names",
             "The SelectBase.c and SelectBase.columns",
         ):
@@ -946,23 +946,23 @@ class KeyTargetingTest(fixtures.TablesTest):
         row = connection.execute(stmt).first()
 
         with testing.expect_deprecated(
-            "Retreiving row values using Column objects "
+            "Retrieving row values using Column objects "
             "with only matching names"
         ):
             in_(keyed2.c.a, row)
         with testing.expect_deprecated(
-            "Retreiving row values using Column objects "
+            "Retrieving row values using Column objects "
             "with only matching names"
         ):
             in_(keyed2.c.b, row)
         with testing.expect_deprecated(
-            "Retreiving row values using Column objects "
+            "Retrieving row values using Column objects "
             "with only matching names",
             "The SelectBase.c and SelectBase.columns",
         ):
             in_(stmt.c.keyed2_a, row)
         with testing.expect_deprecated(
-            "Retreiving row values using Column objects "
+            "Retrieving row values using Column objects "
             "with only matching names",
             "The SelectBase.c and SelectBase.columns",
         ):
@@ -1019,7 +1019,7 @@ class CursorResultTest(fixtures.TablesTest):
         users = self.tables.users
 
         with testing.expect_deprecated(
-            #           "Retreiving row values using Column objects "
+            #           "Retrieving row values using Column objects "
             #           "with only matching names",
             #           "Using non-integer/slice indices on Row is "
             #           "deprecated and will be removed in version 2.0",
@@ -1036,13 +1036,13 @@ class CursorResultTest(fixtures.TablesTest):
 
         r._keymap.pop(users.c.user_id)  # reset lookup
         with testing.expect_deprecated(
-            #           "Retreiving row values using Column objects "
+            #           "Retrieving row values using Column objects "
             #           "with only matching names"
         ):
             eq_(r._mapping[users.c.user_id], 2)
 
         with testing.expect_deprecated(
-            #           "Retreiving row values using Column objects "
+            #           "Retrieving row values using Column objects "
             #           "with only matching names"
         ):
             eq_(r._mapping[users.c.user_name], "jack")
@@ -1053,7 +1053,7 @@ class CursorResultTest(fixtures.TablesTest):
         with testing.expect_deprecated(
             "Using non-integer/slice indices on Row is deprecated "
             "and will be removed in version 2.0",
-            "Retreiving row values using Column objects "
+            "Retrieving row values using Column objects "
             "with only matching names",
         ):
             r = connection.execute(
@@ -1064,7 +1064,7 @@ class CursorResultTest(fixtures.TablesTest):
 
         r._keymap.pop(users.c.user_id)
         with testing.expect_deprecated(
-            "Retreiving row values using Column objects "
+            "Retrieving row values using Column objects "
             "with only matching names"
         ):
             eq_(r._mapping[users.c.user_id], 2)
@@ -1072,14 +1072,14 @@ class CursorResultTest(fixtures.TablesTest):
         with testing.expect_deprecated(
             "Using non-integer/slice indices on Row is deprecated "
             "and will be removed in version 2.0",
-            "Retreiving row values using Column objects "
+            "Retrieving row values using Column objects "
             "with only matching names",
         ):
             eq_(r[users.c.user_name], "jack")
 
         r._keymap.pop(users.c.user_name)
         with testing.expect_deprecated(
-            "Retreiving row values using Column objects "
+            "Retrieving row values using Column objects "
             "with only matching names"
         ):
             eq_(r._mapping[users.c.user_name], "jack")
@@ -1095,7 +1095,7 @@ class CursorResultTest(fixtures.TablesTest):
         in_(content.c.type, row._mapping)
         not_in_(bar.c.content_type, row)
         with testing.expect_deprecated(
-            "Retreiving row values using Column objects "
+            "Retrieving row values using Column objects "
             "with only matching names"
         ):
             in_(sql.column("content_type"), row)
@@ -1104,7 +1104,7 @@ class CursorResultTest(fixtures.TablesTest):
             select([content.c.type.label("content_type")])
         ).first()
         with testing.expect_deprecated(
-            "Retreiving row values using Column objects "
+            "Retrieving row values using Column objects "
             "with only matching names"
         ):
             in_(content.c.type, row)
@@ -1112,7 +1112,7 @@ class CursorResultTest(fixtures.TablesTest):
         not_in_(bar.c.content_type, row)
 
         with testing.expect_deprecated(
-            "Retreiving row values using Column objects "
+            "Retrieving row values using Column objects "
             "with only matching names"
         ):
             in_(sql.column("content_type"), row)
@@ -1126,7 +1126,7 @@ class CursorResultTest(fixtures.TablesTest):
         not_in_(bar.c.content_type, row)
 
         with testing.expect_deprecated(
-            "Retreiving row values using Column objects "
+            "Retrieving row values using Column objects "
             "with only matching names"
         ):
             in_(sql.column("content_type"), row)
@@ -1156,27 +1156,27 @@ class CursorResultTest(fixtures.TablesTest):
 
                     if pickle:
                         with testing.expect_deprecated(
-                            "Retreiving row values using Column objects "
+                            "Retrieving row values using Column objects "
                             "from a row that was unpickled"
                         ):
                             eq_(result[0]._mapping[users.c.user_id], 7)
 
                         result[0]._keymap.pop(users.c.user_id)
                         with testing.expect_deprecated(
-                            "Retreiving row values using Column objects "
+                            "Retrieving row values using Column objects "
                             "from a row that was unpickled"
                         ):
                             eq_(result[0]._mapping[users.c.user_id], 7)
 
                         with testing.expect_deprecated(
-                            "Retreiving row values using Column objects "
+                            "Retrieving row values using Column objects "
                             "from a row that was unpickled"
                         ):
                             eq_(result[0]._mapping[users.c.user_name], "jack")
 
                         result[0]._keymap.pop(users.c.user_name)
                         with testing.expect_deprecated(
-                            "Retreiving row values using Column objects "
+                            "Retrieving row values using Column objects "
                             "from a row that was unpickled"
                         ):
                             eq_(result[0]._mapping[users.c.user_name], "jack")
@@ -1196,14 +1196,14 @@ class CursorResultTest(fixtures.TablesTest):
                         # causing 'user_id' to match when use_labels wasn't
                         # used.
                         with testing.expect_deprecated(
-                            "Retreiving row values using Column objects "
+                            "Retrieving row values using Column objects "
                             "from a row that was unpickled"
                         ):
                             eq_(result[0]._mapping[addresses.c.user_id], 7)
 
                         result[0]._keymap.pop(addresses.c.user_id)
                         with testing.expect_deprecated(
-                            "Retreiving row values using Column objects "
+                            "Retrieving row values using Column objects "
                             "from a row that was unpickled"
                         ):
                             eq_(result[0]._mapping[addresses.c.user_id], 7)
@@ -1395,7 +1395,7 @@ class PositionalTextTest(fixtures.TablesTest):
         row = result.first()
 
         with testing.expect_deprecated(
-            "Retreiving row values using Column objects "
+            "Retrieving row values using Column objects "
             "with only matching names"
         ):
             eq_(row._mapping[text1.c.a], "a1")
@@ -1420,7 +1420,7 @@ class PositionalTextTest(fixtures.TablesTest):
         # key fallback rules still match this to a column
         # unambiguously based on its name
         with testing.expect_deprecated(
-            "Retreiving row values using Column objects "
+            "Retrieving row values using Column objects "
             "with only matching names"
         ):
             eq_(row._mapping[text1.c.a], "a1")
@@ -1428,7 +1428,7 @@ class PositionalTextTest(fixtures.TablesTest):
         # key fallback rules still match this to a column
         # unambiguously based on its name
         with testing.expect_deprecated(
-            "Retreiving row values using Column objects "
+            "Retrieving row values using Column objects "
             "with only matching names"
         ):
             eq_(row._mapping[text1.c.d], "d1")