MCPcopy Create free account
hub / github.com/vercel/vercel / resolve_app

Function resolve_app

python/vercel-runtime/src/vercel_runtime/resolver.py:28–35  ·  view source on GitHub ↗
(mod: ModuleType, module_name: str, var: str)

Source from the content-addressed store, hash-verified

26
27
28def resolve_app(mod: ModuleType, module_name: str, var: str) -> tuple[str, Any]:
29 if hasattr(mod, var):
30 return var, getattr(mod, var)
31
32 raise RuntimeError(
33 f'missing variable "{var}" in file "{module_name}".\n'
34 "See the docs: https://vercel.com/docs/functions/serverless-functions/runtimes/python"
35 )
36
37
38def _get_positional_param_count(obj: object) -> int | None:

Callers 2

vc_init.pyFile · 0.90
_setup_appsFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected