(
code: Union[str, types.CodeType], env: Dict[str, Any], fn_name: str
)
| 347 | |
| 348 | |
| 349 | def _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") |