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

Function _exec_code_in_env

lib/sqlalchemy/testing/plugin/pytestplugin.py:640–646  ·  view source on GitHub ↗
(code, env, fn_name)

Source from the content-addressed store, hash-verified

638 from sqlalchemy.util.compat import inspect_getfullargspec
639
640 def _exec_code_in_env(code, env, fn_name):
641 # note this is affected by "from __future__ import annotations" at
642 # the top; exec'ed code will use non-evaluated annotations
643 # which allows us to be more flexible with code rendering
644 # in format_argpsec_plus()
645 exec(code, env)
646 return env[fn_name]
647
648 def decorate(fn, add_positional_parameters=()):
649 spec = inspect_getfullargspec(fn)

Callers 1

decorateFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected