mirror of
https://github.com/huggingface/lerobot.git
synced 2026-07-24 02:06:15 +00:00
fix(mypy): fixing mypy tests
This commit is contained in:
@@ -153,6 +153,8 @@ class PreTrainedConfig(draccus.ChoiceRegistry, HubMixin, abc.ABC): # type: igno
|
|||||||
|
|
||||||
@property
|
@property
|
||||||
def audio_features(self) -> dict[str, PolicyFeature]:
|
def audio_features(self) -> dict[str, PolicyFeature]:
|
||||||
|
if not self.input_features:
|
||||||
|
return {}
|
||||||
return {key: ft for key, ft in self.input_features.items() if ft.type is FeatureType.AUDIO}
|
return {key: ft for key, ft in self.input_features.items() if ft.type is FeatureType.AUDIO}
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
|||||||
Reference in New Issue
Block a user