]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
Fix 'polymorphic' typo in a few places (#12307)
authorMartin Burchell <mb2353@cam.ac.uk>
Mon, 3 Feb 2025 18:56:55 +0000 (18:56 +0000)
committerFederico Caselli <cfederico87@gmail.com>
Mon, 3 Feb 2025 18:58:05 +0000 (19:58 +0100)
(cherry picked from commit 87c8d04d379a70aafb189f18801f0f375d99262b)

doc/build/orm/declarative_tables.rst
lib/sqlalchemy/orm/path_registry.py
test/orm/test_core_compilation.py

index aba74f57932ae4f3f745118fa6804e696e03b203..2ec15e3bf58d34d5e63e5d0c8521d1613587bb18 100644 (file)
@@ -1502,7 +1502,7 @@ mapper configuration::
 
         __mapper_args__ = {
             "polymorphic_on": __table__.c.type,
-            "polymorhpic_identity": "person",
+            "polymorphic_identity": "person",
         }
 
 The "imperative table" form is also used when a non-:class:`_schema.Table`
index a15f7f61b451692d50b977e7b2b95998e77f0798..388e46098d656c4308956d7cf977e4b1f4e25dd0 100644 (file)
@@ -566,7 +566,7 @@ class PropRegistry(PathRegistry):
             # entities are used.
             #
             # here we are trying to distinguish between a path that starts
-            # on a the with_polymorhpic entity vs. one that starts on a
+            # on a with_polymorphic entity vs. one that starts on a
             # normal entity that introduces a with_polymorphic() in the
             # middle using of_type():
             #
index 81aa760d9b2fffac00611f5b2134256f363b3b86..6af9185836b128cff0d1e10a49e7a0af24b7a7b5 100644 (file)
@@ -1797,7 +1797,7 @@ class InheritedTest(_poly_fixtures._Polymorphic):
     run_setup_mappers = "once"
 
 
-class ExplicitWithPolymorhpicTest(
+class ExplicitWithPolymorphicTest(
     _poly_fixtures._PolymorphicUnions, AssertsCompiledSQL
 ):
     __dialect__ = "default"