repl / src /core /env_server /_utils.py
sergiopaniego's picture
sergiopaniego HF Staff
Upload folder using huggingface_hub
45a291e verified
Raw History Blame Contribute Delete
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