]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
fix "constrast" typos
authorNils Philippsen <nils@tiptoe.de>
Sat, 5 Aug 2017 11:31:06 +0000 (13:31 +0200)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 9 Aug 2017 13:33:07 +0000 (09:33 -0400)
(cherry picked from commit 7765724d51f78690c814eda6533fc0ac81ca9077)

doc/build/orm/extensions/declarative/mixins.rst
lib/sqlalchemy/orm/events.py

index c401b9bc8fb5388954aba5a31ae3c8492051878a..3b1146240c62f401fd8a998bf9fef10a130de376 100644 (file)
@@ -436,7 +436,7 @@ against the parent::
 Mixing in Columns in Inheritance Scenarios
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
-In constrast to how ``__tablename__`` and other special names are handled when
+In contrast to how ``__tablename__`` and other special names are handled when
 used with :class:`.declared_attr`, when we mix in columns and properties (e.g.
 relationships, column properties, etc.), the function is
 invoked for the **base class only** in the hierarchy.  Below, only the
index 9e67da5bcfe32b9e3dd8a9895c29bcd7958bfcdb..5c256d45c8c7e68699a2a6ee0d5da2515500d800 100644 (file)
@@ -732,7 +732,7 @@ class MapperEvents(event.Events):
             def go():
                 # ...
 
-        Constrast this event to :meth:`.MapperEvents.after_configured`,
+        Contrast this event to :meth:`.MapperEvents.after_configured`,
         which is invoked after the series of mappers has been configured,
         as well as :meth:`.MapperEvents.mapper_configured`, which is invoked
         on a per-mapper basis as each one is configured to the extent possible.
@@ -779,7 +779,7 @@ class MapperEvents(event.Events):
         operation proceeds; unlike that event, when this event is invoked,
         all cross-configurations (e.g. backrefs) will also have been made
         available for any mappers that were pending.
-        Also constrast to :meth:`.MapperEvents.before_configured`,
+        Also contrast to :meth:`.MapperEvents.before_configured`,
         which is invoked before the series of mappers has been configured.
 
         This event can **only** be applied to the :class:`.Mapper` class