Using starlette , implement a utility called AsyncCallableClassifier that inspects callables and categorizes…
Using starlette , implement a utility called AsyncCallableClassifier that inspects callables and categorizes…: a task in repo2rlenv-code-instruct (Harbor dataset). The returned dict must have: - "is async" : bool — whether the callable is async (use starlette. utils.is async callable ) - "callable…
The task
The returned dict must have: - `"is_async"`: `bool` — whether the callable is async (use `starlette._utils.is_async_callable`) - `"callable_type"`: `str` — one of `"function"`, `"partial"`, `"lambda"`, `"class_instance"`, or `"unknown"` - `"name"`: `str` — the callable's `__name__` if available, else `"<anonymous>"`
Part of FineEnvs/repo2rlenv-code-instruct.