Improve type hints (#1293)
This commit is contained in:
@@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
import abc
|
import abc
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from typing import Any
|
from typing import Any, Type
|
||||||
|
|
||||||
import draccus
|
import draccus
|
||||||
|
|
||||||
@@ -39,7 +39,7 @@ class Robot(abc.ABC):
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
# Set these in ALL subclasses
|
# Set these in ALL subclasses
|
||||||
config_class: RobotConfig
|
config_class: Type[RobotConfig]
|
||||||
name: str
|
name: str
|
||||||
|
|
||||||
def __init__(self, config: RobotConfig):
|
def __init__(self, config: RobotConfig):
|
||||||
|
|||||||
@@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
import abc
|
import abc
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from typing import Any
|
from typing import Any, Type
|
||||||
|
|
||||||
import draccus
|
import draccus
|
||||||
|
|
||||||
@@ -37,7 +37,7 @@ class Teleoperator(abc.ABC):
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
# Set these in ALL subclasses
|
# Set these in ALL subclasses
|
||||||
config_class: TeleoperatorConfig
|
config_class: Type[TeleoperatorConfig]
|
||||||
name: str
|
name: str
|
||||||
|
|
||||||
def __init__(self, config: TeleoperatorConfig):
|
def __init__(self, config: TeleoperatorConfig):
|
||||||
|
|||||||
Reference in New Issue
Block a user