Skip to content

Commit 3d920f7

Browse files
tidelyfracapuano
authored andcommitted
Improve type hints (#1293)
1 parent c54e9d4 commit 3d920f7

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lerobot/common/robots/robot.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
import abc
1616
from pathlib import Path
17-
from typing import Any
17+
from typing import Any, Type
1818

1919
import draccus
2020

@@ -39,7 +39,7 @@ class Robot(abc.ABC):
3939
"""
4040

4141
# Set these in ALL subclasses
42-
config_class: RobotConfig
42+
config_class: Type[RobotConfig]
4343
name: str
4444

4545
def __init__(self, config: RobotConfig):

lerobot/common/teleoperators/teleoperator.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
import abc
1616
from pathlib import Path
17-
from typing import Any
17+
from typing import Any, Type
1818

1919
import draccus
2020

@@ -37,7 +37,7 @@ class Teleoperator(abc.ABC):
3737
"""
3838

3939
# Set these in ALL subclasses
40-
config_class: TeleoperatorConfig
40+
config_class: Type[TeleoperatorConfig]
4141
name: str
4242

4343
def __init__(self, config: TeleoperatorConfig):

0 commit comments

Comments
 (0)