Download tasks/swe-next-1a113b4bab7fa544fc2b/tests/source/benchmarks/__init__.py from FineEnvs/repo2rlenv-swe-next: direct link, hf CLI and curl.
- Browser
- Download file 404 Bytes
-
https://huggingface.co/datasets/FineEnvs/repo2rlenv-swe-next/resolve/main/tasks/swe-next-1a113b4bab7fa544fc2b/tests/source/benchmarks/__init__.py
- Command line
-
hf download hf://datasets/FineEnvs/repo2rlenv-swe-next/tasks/swe-next-1a113b4bab7fa544fc2b/tests/source/benchmarks/__init__.py
-
curl -L -o __init__.py https://huggingface.co/datasets/FineEnvs/repo2rlenv-swe-next/resolve/main/tasks/swe-next-1a113b4bab7fa544fc2b/tests/source/benchmarks/__init__.py
404 Bytes
| from __future__ import annotations | |
| from typing import TYPE_CHECKING, Any, TypeVar | |
| if TYPE_CHECKING: | |
| from collections.abc import Callable | |
| F = TypeVar("F", bound="Callable[..., Any]") | |
| def add_attributes(**attrs: object) -> Callable[[F], F]: | |
| def decorator(func: F) -> F: | |
| for name, value in attrs.items(): | |
| setattr(func, name, value) | |
| return func | |
| return decorator | |