(self, element, *, argname=None, **kw)
| 606 | __slots__ = () |
| 607 | |
| 608 | def _literal_coercion(self, element, *, argname=None, **kw): |
| 609 | if isinstance(element, str) and issubclass( |
| 610 | elements.TextClause, self._role_class |
| 611 | ): |
| 612 | _no_text_coercion(element, argname) |
| 613 | else: |
| 614 | self._raise_for_expected(element, argname) |
| 615 | |
| 616 | |
| 617 | class _CoerceLiterals(RoleImpl): |
nothing calls this directly
no test coverage detected