Improve type hints (#1293)

这个提交包含在:
tidely
2025-06-14 15:06:22 +03:00
提交者 GitHub
父节点 6007a221f0
当前提交 dcc0c234dd
共有 2 个文件被更改,包括 4 次插入 和 4 次删除

查看文件

@ -14,7 +14,7 @@
import abc
from pathlib import Path
from typing import Any
from typing import Any, Type
import draccus
@ -39,7 +39,7 @@ class Robot(abc.ABC):
"""
# Set these in ALL subclasses
config_class: RobotConfig
config_class: Type[RobotConfig]
name: str
def __init__(self, config: RobotConfig):

查看文件

@ -14,7 +14,7 @@
import abc
from pathlib import Path
from typing import Any
from typing import Any, Type
import draccus
@ -37,7 +37,7 @@ class Teleoperator(abc.ABC):
"""
# Set these in ALL subclasses
config_class: TeleoperatorConfig
config_class: Type[TeleoperatorConfig]
name: str
def __init__(self, config: TeleoperatorConfig):