"When compiling mapper %s, expression %r failed to locate a name (%r). "
"If this is a class name, consider adding this relation() to the %r "
"class after both dependent classes have been defined." % (
- prop.parent, arg, n.
+ prop.parent, arg, n., cls))
if isinstance(prop, PropertyLoader):