Skip to content

Commit 7dd771e

Browse files
committed
adds type checking guard for assets
1 parent e06a067 commit 7dd771e

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

CONTRIBUTORS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ Guidelines for modifications:
122122
* René Zurbrügg
123123
* Ritvik Singh
124124
* Rosario Scalise
125+
* Ryan Gresia
125126
* Ryley McCarroll
126127
* Shafeef Omar
127128
* Shaoshu Su

source/isaaclab/isaaclab/managers/action_manager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@
1818

1919
import omni.kit.app
2020

21-
from isaaclab.assets import AssetBase
2221
from isaaclab.envs.utils.io_descriptors import GenericActionIODescriptor
2322

2423
from .manager_base import ManagerBase, ManagerTermBase
2524
from .manager_term_cfg import ActionTermCfg
2625

2726
if TYPE_CHECKING:
27+
from isaaclab.assets import AssetBase
2828
from isaaclab.envs import ManagerBasedEnv
2929

3030

source/isaaclab/isaaclab/managers/scene_entity_cfg.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,15 @@
55

66
"""Configuration terms for different managers."""
77

8+
from __future__ import annotations
9+
810
from dataclasses import MISSING
11+
from typing import TYPE_CHECKING
12+
13+
if TYPE_CHECKING:
14+
from isaaclab.assets import Articulation, RigidObject, RigidObjectCollection
15+
from isaaclab.scene import InteractiveScene
916

10-
from isaaclab.assets import Articulation, RigidObject, RigidObjectCollection
11-
from isaaclab.scene import InteractiveScene
1217
from isaaclab.utils import configclass
1318

1419

0 commit comments

Comments
 (0)