Replace deprecated abc.abstractproperty

This commit is contained in:
Simon Alibert
2025-05-20 13:16:34 +02:00
parent 9dab08dfbc
commit 8ab2227148
4 changed files with 24 additions and 12 deletions

View File

@@ -32,7 +32,8 @@ class EnvConfig(draccus.ChoiceRegistry, abc.ABC):
def type(self) -> str:
return self.get_choice_name(self.__class__)
@abc.abstractproperty
@property
@abc.abstractmethod
def gym_kwargs(self) -> dict:
raise NotImplementedError()