Skip to content

Commit 3f8ee46

Browse files
committed
lint: shorten a long domino import in test_pybullet_domino_composed
isort reordered the imports such that the fully-qualified domino_task_generator import exceeded 80 cols (pylint C0301). Alias the parent package as dtg, matching the other domino_debug modules.
1 parent 8b499cf commit 3f8ee46

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

tests/envs/test_pybullet_domino_composed.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
DominoComponent
88
from predicators.envs.pybullet_domino.components.grid_component import \
99
GridComponent
10-
from predicators.envs.pybullet_domino.task_generators.domino_task_generator import \
11-
DominoTaskGenerator
10+
from predicators.envs.pybullet_domino.task_generators import \
11+
domino_task_generator as dtg
1212
from predicators.settings import CFG
1313
from predicators.structs import Object, State, Type
1414

@@ -96,7 +96,7 @@ def test_unfinished_state_avoids_staging_collisions() -> None:
9696
num_pivots_max=1,
9797
workspace_bounds=workspace_bounds)
9898
robot = Object("robot", Type("robot", ["x", "y", "z"]))
99-
generator = DominoTaskGenerator(comp, robot, {})
99+
generator = dtg.DominoTaskGenerator(comp, robot, {})
100100

101101
first_staging_x = comp.domino_x_lb + comp.domino_width
102102
first_staging_y = comp.domino_y_lb + comp.domino_width

0 commit comments

Comments
 (0)