Download src/core/env_server/_utils.py from openenv/repl: direct link, hf CLI and curl.
- Browser
- Download file 315 Bytes
-
https://huggingface.co/spaces/openenv/repl/resolve/main/src/core/env_server/_utils.py
- Command line
-
hf download hf://spaces/openenv/repl/src/core/env_server/_utils.py
-
curl -L -o _utils.py https://huggingface.co/spaces/openenv/repl/resolve/main/src/core/env_server/_utils.py
315 Bytes
| """Shared env server implementation helpers.""" | |
| from __future__ import annotations | |
| from typing import Any | |
| def overrides_method(method: Any, base_method: Any) -> bool: | |
| """Return whether a bound method differs from the base implementation.""" | |
| return getattr(method, "__func__", method) is not base_method | |