]> 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)
committerGitHub <noreply@github.com>
Mon, 3 Feb 2025 18:56:55 +0000 (19:56 +0100)
doc/build/orm/declarative_tables.rst
lib/sqlalchemy/orm/path_registry.py
test/orm/test_core_compilation.py

index a8e8afff905e653f8ba896bc2e49e3c2b1033011..9619c5b253aae52344bc48fe8a98430513d3d73c 100644 (file)
@@ -1519,7 +1519,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 a405244ba75f5df8ac8759eb0c31f900c57a876a..aa1363ad826ccd7c162beb3a5e556d74ae914d6b 100644 (file)
@@ -570,7 +570,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"