Skip to content

Commit a37d32c

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

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-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: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,12 @@
66
"""Configuration terms for different managers."""
77

88
from dataclasses import MISSING
9+
from typing import TYPE_CHECKING
10+
11+
if TYPE_CHECKING:
12+
from isaaclab.assets import Articulation, RigidObject, RigidObjectCollection
13+
from isaaclab.scene import InteractiveScene
914

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

1417

0 commit comments

Comments
 (0)