with_requirements
Returns:
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
with_requirements(python_packages: list[str] = [], global_imports: list[str | ImportFromModule | Alias] = []) -> Callable[[Callable[~P, ~T]], FunctionWithRequirements[~T, ~P]]
| Name | Description |
|---|---|
python_packages | Packages required to function. Can include version info.. Defaults to []. Type: list[str] Default: [] |
global_imports | Required imports. Defaults to []. Type: list[str | ImportFromModule | Alias] Default: [] |
| Type | Description |
|---|---|
| Callable[[Callable[~P, ~T]], FunctionWithRequirements[~T, ~P]] | Callable[[Callable[P, T]], FunctionWithRequirements[T, P]]: The decorated function |