From: Martin Burchell Date: Mon, 3 Feb 2025 18:56:55 +0000 (+0000) Subject: Fix 'polymorphic' typo in a few places (#12307) X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=87c8d04d379a70aafb189f18801f0f375d99262b;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git Fix 'polymorphic' typo in a few places (#12307) --- diff --git a/doc/build/orm/declarative_tables.rst b/doc/build/orm/declarative_tables.rst index a8e8afff90..9619c5b253 100644 --- a/doc/build/orm/declarative_tables.rst +++ b/doc/build/orm/declarative_tables.rst @@ -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` diff --git a/lib/sqlalchemy/orm/path_registry.py b/lib/sqlalchemy/orm/path_registry.py index a405244ba7..aa1363ad82 100644 --- a/lib/sqlalchemy/orm/path_registry.py +++ b/lib/sqlalchemy/orm/path_registry.py @@ -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(): # 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"