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

Method _implicit_coercions

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

Source from the content-addressed store, hash-verified

1273 __slots__ = ()
1274
1275 def _implicit_coercions(
1276 self,
1277 element: Any,
1278 resolved: Any,
1279 argname: Optional[str] = None,
1280 *,
1281 explicit_subquery: bool = False,
1282 **kw: Any,
1283 ) -> Any:
1284 if resolved._is_select_base and explicit_subquery:
1285 return resolved.subquery()
1286
1287 self._raise_for_expected(element, argname, resolved)
1288
1289 def _post_coercion(self, element, *, deannotate=False, **kw):
1290 if deannotate:

Callers

nothing calls this directly

Calls 2

subqueryMethod · 0.45
_raise_for_expectedMethod · 0.45

Tested by

no test coverage detected