MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / _exec_code_in_env

Function _exec_code_in_env

lib/sqlalchemy/util/langhelpers.py:349–353  ·  view source on GitHub ↗
(
    code: Union[str, types.CodeType], env: Dict[str, Any], fn_name: str
)

Source from the content-addressed store, hash-verified

347
348
349def _exec_code_in_env(
350 code: Union[str, types.CodeType], env: Dict[str, Any], fn_name: str
351) -> Callable[..., Any]:
352 exec(code, env)
353 return env[fn_name] # type: ignore[no-any-return]
354
355
356_PF = TypeVar("_PF")

Callers 1

decorateFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected