MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / _implicit_coercions

Method _implicit_coercions

lib/sqlalchemy/sql/coercions.py:721–731  ·  view source on GitHub ↗
(
        self,
        element: Any,
        resolved: Any,
        argname: Optional[str] = None,
        **kw: Any,
    )

Source from the content-addressed store, hash-verified

719 __slots__ = ()
720
721 def _implicit_coercions(
722 self,
723 element: Any,
724 resolved: Any,
725 argname: Optional[str] = None,
726 **kw: Any,
727 ) -> Any:
728 if isinstance(element, HasCacheKey):
729 return element
730 else:
731 self._raise_for_expected(element, argname, resolved)
732
733 def _literal_coercion(self, element, **kw):
734 return element

Callers

nothing calls this directly

Calls 1

_raise_for_expectedMethod · 0.45

Tested by

no test coverage detected