HF RL Explorer

InvalidMethod should subclass AttributeError for compatibility with typing.Protocol and runtime checkable

InvalidMethod should subclass AttributeError for compatibility with typing.Protocol and runtime checkable: a task in Repo2RLEnv R2E-Gym / SWEGEN (Harbor dataset). When using pydash 's chaining interface with typing.Protocol and @runtime checkable , things break unexpectedly. The root cause is that…

The task

When using `pydash`'s chaining interface with `typing.Protocol` and `@runtime_checkable`, things break unexpectedly. The root cause is that `pydash.exceptions.InvalidMethod` inherits from `Exception` instead of `AttributeError`.

Part of FineEnvs/repo2rlenv-r2e-gym.