From 5e623b989e92a60739714486210cae5d8933db99 Mon Sep 17 00:00:00 2001 From: Martin Burchell Date: Mon, 3 Feb 2025 18:56:55 +0000 Subject: [PATCH] Fix 'polymorphic' typo in a few places (#12307) (cherry picked from commit 87c8d04d379a70aafb189f18801f0f375d99262b) --- doc/build/orm/declarative_tables.rst | 2 +- lib/sqlalchemy/orm/path_registry.py | 2 +- test/orm/test_core_compilation.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/build/orm/declarative_tables.rst b/doc/build/orm/declarative_tables.rst index aba74f5793..2ec15e3bf5 100644 --- a/doc/build/orm/declarative_tables.rst +++ b/doc/build/orm/declarative_tables.rst @@ -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` diff --git a/lib/sqlalchemy/orm/path_registry.py b/lib/sqlalchemy/orm/path_registry.py index a15f7f61b4..388e46098d 100644 --- a/lib/sqlalchemy/orm/path_registry.py +++ b/lib/sqlalchemy/orm/path_registry.py @@ -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(): # diff --git a/test/orm/test_core_compilation.py b/test/orm/test_core_compilation.py index 81aa760d9b..6af9185836 100644 --- a/test/orm/test_core_compilation.py +++ b/test/orm/test_core_compilation.py @@ -1797,7 +1797,7 @@ class InheritedTest(_poly_fixtures._Polymorphic): run_setup_mappers = "once" -class ExplicitWithPolymorhpicTest( +class ExplicitWithPolymorphicTest( _poly_fixtures._PolymorphicUnions, AssertsCompiledSQL ): __dialect__ = "default" -- 2.47.3