]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
Fix various source comment/doc typos 7338/head
authorluz paz <luzpaz@users.noreply.github.com>
Wed, 17 Nov 2021 12:30:51 +0000 (07:30 -0500)
committerluz paz <luzpaz@users.noreply.github.com>
Wed, 17 Nov 2021 12:30:51 +0000 (07:30 -0500)
Found via `codespell -q 3 -L ba,crate,datas,froms,gord,hist,inh,nd,selectin,strat,ue`

doc/build/core/connections.rst
doc/build/errors.rst
doc/build/faq/connections.rst
doc/build/orm/extensions/asyncio.rst
lib/sqlalchemy/engine/base.py
lib/sqlalchemy/sql/type_api.py
test/dialect/postgresql/test_dialect.py
test/orm/inheritance/test_single.py
test/orm/test_deferred.py
test/orm/test_mapper.py
test/orm/test_relationships.py

index 0cf3c2e2a3cb1b4e1bd5df49b8eab10a9eceaf49..51262434bcdbda20d78e49bde06e46a910c4686a 100644 (file)
@@ -119,7 +119,7 @@ illustrated in the example below::
 .. topic::  the Python DBAPI is where autobegin actually happens
 
     The design of "commit as you go" is intended to be complementary to the
-    design of the :term:`DBAPI`, which is the underyling database interface
+    design of the :term:`DBAPI`, which is the underlying database interface
     that SQLAlchemy interacts with. In the DBAPI, the ``connection`` object does
     not assume changes to the database will be automatically committed, instead
     requiring in the default case that the ``connection.commit()`` method is
index 41802240ac4f2a486c18910c051553e22b381e9b..3146f77e2acc32fb9ecb424f3c034a7b02b4e539 100644 (file)
@@ -1431,7 +1431,7 @@ the :term:`detached` state.
 .. note:: The above reference to a "pre-buffered" vs. "un-buffered"
    :class:`_result.Result` object refers to the process by which the ORM
    converts incoming raw database rows from the :term:`DBAPI` into ORM
-   objects.  It does not imply whether or not the underyling ``cursor``
+   objects.  It does not imply whether or not the underlying ``cursor``
    object itself, which represents pending results from the DBAPI, is itself
    buffered or unbuffered, as this is essentially a lower layer of buffering.
    For background on buffering of the ``cursor`` results itself, see the
index f8c4e5bcaad6791d622c6baa2e263381e2ab3c81..02d088384c0300fb063a03f5ce090dcbaf01284a 100644 (file)
@@ -446,8 +446,8 @@ as all methods are proxied through::
    attribute is also added which will always refer to the real driver-level
    connection regardless of what API it presents.
 
-Accessing the underlying connnection for an asyncio driver
-^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+Accessing the underlying connection for an asyncio driver
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 
 When an asyncio driver is in use, there are two changes to the above
 scheme.  The first is that when using an :class:`_asyncio.AsyncConnection`,
index fcaf104467cf3b1e9ca0ae5764012672fb26e4c5..decba4dfc6d2ecbb48992e292c99ad16d1d0fa9e 100644 (file)
@@ -583,7 +583,7 @@ The above example prints something along the lines of::
     particular SQLAlchemy API has been invoked by end-user code, and *before*
     some other internal aspect of that API occurs.
 
-    Constrast this to the architecture of the asyncio extension, which takes
+    Contrast this to the architecture of the asyncio extension, which takes
     place on the **exterior** of SQLAlchemy's usual flow from end-user API to
     DBAPI function.
 
index ef62825251f082b6d1b12b0a6e0ee7ebe531eb11..3e577171b6c7c2d3922b1e3f185715c6341a9ab9 100644 (file)
@@ -179,7 +179,7 @@ class Connection(Connectable):
         keeping the effect of such an option localized to a "sub" connection.
 
         .. versionchanged:: 2.0  The :meth:`_engine.Connection.execution_options`
-           method, in constrast to other objects with this method, modifies
+           method, in contrast to other objects with this method, modifies
            the connection in-place without creating copy of it.
 
         As discussed elsewhere, the :meth:`_engine.Connection.execution_options`
index f588512687cbeb7b404956f96c82215d5471a297..06473aaac339f50548287357b9505a80c53e1c1d 100644 (file)
@@ -1591,7 +1591,7 @@ class TypeDecorator(SchemaEventTarget, TypeEngine):
             in a result row subsequent to statement execution time.
 
         Subclasses of :class:`_types.TypeDecorator` can override this method
-        to provide custom column expresion behavior for the type.  This
+        to provide custom column expression behavior for the type.  This
         implementation will **replace** that of the underlying implementation
         type.
 
index c12f4a50adc11c22fb288bcf2fd95b2733c47aa8..9a62f4e954f47a39e6639eb0f4c58d8a486e4f79 100644 (file)
@@ -234,7 +234,7 @@ $$ LANGUAGE plpgsql;"""
             "connection not open",
             "could not receive data from server",
             "could not send data to server",
-            # psycopg2 client errors, psycopg2/conenction.h,
+            # psycopg2 client errors, psycopg2/connection.h,
             # psycopg2/cursor.h
             "connection already closed",
             "cursor already closed",
index fbafdd85be758267591558693f05f08f11972b4e..ed344f4d0a212a07285c9113bed75034cb8d512a 100644 (file)
@@ -596,8 +596,8 @@ class SingleInheritanceTest(testing.AssertsCompiledSQL, fixtures.MappedTest):
         ra = aliased(Report, subq)
 
         # this test previously used select_entity_from().  the standard
-        # conversion to use aliased() neds to be adjusted to be against
-        # Employee, not Manger, otherwise the ORM will add the manager single
+        # conversion to use aliased() needs to be adjusted to be against
+        # Employee, not Manager, otherwise the ORM will add the manager single
         # inh criteria to the outside which will break the outer join
         ma = aliased(Employee, subq)
 
index b14313e8bac338dce9ac00b043edaf197786ee8e..9e53f2218536ed9b84e2c948ed5bcde8e31b42b0 100644 (file)
@@ -1580,7 +1580,7 @@ class InheritanceTest(_Polymorphic):
         )
 
         # note this doesn't apply to "bound" loaders since they don't seem
-        # to have this ".*" featue.
+        # to have this ".*" feature.
 
     def test_load_only_subclass_of_type(self):
         s = fixture_session()
index ec1ef37962756f4e8e95ba1064146a9cd4e5e3bf..6ccbe194fe41056fe13ce4582983d6712a55113f 100644 (file)
@@ -924,7 +924,7 @@ class MapperTest(_fixtures.FixtureTest, AssertsCompiledSQL):
         sess = fixture_session()
         u1 = sess.get(User, 7)
         u2 = sess.get(User, 8)
-        # comparaison ops need to work
+        # comparison ops need to work
         a1 = sess.query(Address).filter(Address.user == u1).one()
         eq_(a1.id, 1)
         a1.user = u2
index 98de9abad7378e95a029561792cc2c437ad1a73e..60dc46f3f11d9f8e061ab7b10ef46cc046d06f7f 100644 (file)
@@ -1034,7 +1034,7 @@ class OverlappingFksSiblingTest(fixtures.MappedTest):
 
     @testing.provide_metadata
     def test_works_two(self):
-        # doesn't actually work with real FKs beacuse it creates conflicts :)
+        # doesn't actually work with real FKs because it creates conflicts :)
         self._fixture_one(
             add_b_a=True, add_b_a_overlaps="a_member", add_bsub1_a=True
         )