From 8bd37070312ce48c5172de0cfc417bbd8b8201b6 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Sun, 2 Mar 2008 06:09:45 +0000 Subject: [PATCH] fix maddening ReST bug --- lib/sqlalchemy/orm/interfaces.py | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/lib/sqlalchemy/orm/interfaces.py b/lib/sqlalchemy/orm/interfaces.py index 15f752314c..ef263da4c5 100644 --- a/lib/sqlalchemy/orm/interfaces.py +++ b/lib/sqlalchemy/orm/interfaces.py @@ -444,15 +444,17 @@ class PropComparator(expression.ColumnOperators): def of_type(self, class_): """Redefine this object in terms of a polymorphic subclass. - Returns a new PropComparator from which further criterion can be evaulated. - - class_ - a class or mapper indicating that criterion will be against - this specific subclass. - + Returns a new PropComparator from which further criterion can be evaluated. + e.g.:: - query.join(Company.employees.of_type(Engineer)).\ - filter(Engineer.name=='foo') + + query.join(Company.employees.of_type(Engineer)).\\ + filter(Engineer.name=='foo') + + \class_ + a class or mapper indicating that criterion will be against + this specific subclass. + """ -- 2.47.3