From 0defaf16dde4999d31cf648bb4f8c5e8c05838cc Mon Sep 17 00:00:00 2001 From: Maxime Gasse Date: Wed, 27 Nov 2024 12:12:11 -0500 Subject: [PATCH] optional get_task_id() --- browsergym/core/src/browsergym/core/task.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/browsergym/core/src/browsergym/core/task.py b/browsergym/core/src/browsergym/core/task.py index ea35d51d..262f829c 100644 --- a/browsergym/core/src/browsergym/core/task.py +++ b/browsergym/core/src/browsergym/core/task.py @@ -12,9 +12,8 @@ class AbstractBrowserTask(ABC): """ @classmethod - @abstractmethod def get_task_id(cls): - pass + raise NotImplementedError def __init__(self, seed: int) -> None: # initiate a random number generator