MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / __str__

Method __str__

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

Source from the content-addressed store, hash-verified

1302 )
1303
1304 def __str__(self):
1305 if self._is_with_polymorphic:
1306 return "with_polymorphic(%s, [%s])" % (
1307 self._target.__name__,
1308 ", ".join(
1309 mp.class_.__name__
1310 for mp in self.with_polymorphic_mappers
1311 if mp is not self.mapper
1312 ),
1313 )
1314 else:
1315 return "aliased(%s)" % (self._target.__name__,)
1316
1317
1318class _WrapUserEntity:

Callers

nothing calls this directly

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected