MCPcopy Create free account
hub / github.com/sqlalchemy/sqlalchemy / __repr__

Method __repr__

lib/sqlalchemy/orm/util.py:1273–1284  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1271 return value
1272
1273 def __repr__(self):
1274 if self.with_polymorphic_mappers:
1275 with_poly = "(%s)" % ", ".join(
1276 mp.class_.__name__ for mp in self.with_polymorphic_mappers
1277 )
1278 else:
1279 with_poly = ""
1280 return "<AliasedInsp at 0x%x; %s%s>" % (
1281 id(self),
1282 self.class_.__name__,
1283 with_poly,
1284 )
1285
1286 def __str__(self):
1287 if self._is_with_polymorphic:

Callers

nothing calls this directly

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected