mirror of
https://github.com/huggingface/lerobot.git
synced 2026-05-16 09:09:48 +00:00
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
committed by
Adil Zouitine
parent
35612c61e1
commit
14c2ece004
@@ -902,17 +902,17 @@ class MockStepWithNonSerializableParam:
|
||||
|
||||
return (obs, action, reward, done, truncated, info, comp_data)
|
||||
|
||||
def get_config(self) -> Dict[str, Any]:
|
||||
def get_config(self) -> dict[str, Any]:
|
||||
# Note: env is intentionally NOT included here as it's not serializable
|
||||
return {
|
||||
"name": self.name,
|
||||
"multiplier": self.multiplier,
|
||||
}
|
||||
|
||||
def state_dict(self) -> Dict[str, torch.Tensor]:
|
||||
def state_dict(self) -> dict[str, torch.Tensor]:
|
||||
return {}
|
||||
|
||||
def load_state_dict(self, state: Dict[str, torch.Tensor]) -> None:
|
||||
def load_state_dict(self, state: dict[str, torch.Tensor]) -> None:
|
||||
pass
|
||||
|
||||
def reset(self) -> None:
|
||||
@@ -936,16 +936,16 @@ class RegisteredMockStep:
|
||||
|
||||
return (obs, action, reward, done, truncated, info, comp_data)
|
||||
|
||||
def get_config(self) -> Dict[str, Any]:
|
||||
def get_config(self) -> dict[str, Any]:
|
||||
return {
|
||||
"value": self.value,
|
||||
"device": self.device,
|
||||
}
|
||||
|
||||
def state_dict(self) -> Dict[str, torch.Tensor]:
|
||||
def state_dict(self) -> dict[str, torch.Tensor]:
|
||||
return {}
|
||||
|
||||
def load_state_dict(self, state: Dict[str, torch.Tensor]) -> None:
|
||||
def load_state_dict(self, state: dict[str, torch.Tensor]) -> None:
|
||||
pass
|
||||
|
||||
def reset(self) -> None:
|
||||
|
||||
Reference in New Issue
Block a user