(mod: ModuleType, module_name: str, var: str)
| 26 | |
| 27 | |
| 28 | def 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 | |
| 38 | def _get_positional_param_count(obj: object) -> int | None: |
no outgoing calls
no test coverage detected